Skip to content
Snippets Groups Projects
Commit 8fe2cf15 authored by Valentin Emiya's avatar Valentin Emiya
Browse files

update ci.yml

parent ad29ab35
No related branches found
No related tags found
No related merge requests found
Pipeline #14340 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment