diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42b4f0a62d6b4f0ad4e071851faa9f72462e7c3a..659ca4f5918f4a9c2773481af5159751359d38ba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,18 @@ default: paths: # https://pip.pypa.io/en/stable/topics/caching/ - .cache/pip before_script: + +stages: + - test +# Change pip's cache directory to be inside the project directory since we can +# only cache local items. +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" + +install_and_test_39: + image: python:3.9 + stage: test + script: - apt-get update - apt-get install -y --no-install-recommends cmake - apt-get install -y --no-install-recommends gcc @@ -34,18 +46,6 @@ default: - source venv/bin/activate - pip install --upgrade pip - pip install matplotlib numpy scipy six coverage pytest pytest-cov - -stages: - - test -# Change pip's cache directory to be inside the project directory since we can -# only cache local items. -variables: - PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" - -install_and_test_39: - image: python:3.9 - stage: test - script: - dpkg -L python3-pytest | xargs file | grep executable - pip3 install -e . --no-deps - python3 -m pytest @@ -66,7 +66,6 @@ ubuntu:X86_64: - conda activate py39 - pip3 install -e . --no-deps - python3 -m pytest - # - py.test-3 artifacts: when: always untracked: true @@ -74,20 +73,22 @@ ubuntu:X86_64: - build expire_in: 8d -# # Tests on i686 ubuntu -# ubuntu:i686: -# image: registry.gitlab.lis-lab.fr:5005/dev/ltfatpy/ubuntu:i686 -# tags: -# - docker -# script: -# - pip3 install -e . --no-deps -# - py.test-3 -# artifacts: -# when: always -# untracked: true -# paths: -# - build -# expire_in: 8d +# Tests on i686 ubuntu +ubuntu:i686: + image: registry.gitlab.lis-lab.fr:5005/dev/ltfatpy/ubuntu:i686 + tags: + - docker + script: + - conda create -n py39 Python=3.9 + - conda activate py39 + - pip3 install -e . --no-deps + - python3 -m pytest + artifacts: + when: always + untracked: true + paths: + - build + expire_in: 8d # doc template .doc: &doc