Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
before_script:
- export GIT_SSL_NO_VERIFY=1
- export PATH="$HOME/miniconda2/bin:$PATH"
stages:
- prepare
- test
- report
- clean
cache:
paths:
- test/report
prepare:
stage: prepare
script:
- conda update conda
test_python2:
stage: test
script:
- git submodule sync --recursive
- git submodule update --init --recursive
- conda env update -f environment.yml -n diagonals python=2.7
- source activate diagonals
- pip install -e .[test]
- python setup.py test
test_python3:
stage: test
script:
- git submodule sync --recursive
- git submodule update --init --recursive
- conda env update -f environment.yml -n diagonals python=3.7
- source activate diagonals3
- pip install -e .[test]
- python setup.py test
report_codacy:
stage: report
script:
- source activate diagnostics3
- pip install codacy-coverage --upgrade
- python-codacy-coverage -r test/report/python3/coverage.xml
clean:
stage: clean
script:
- conda clean --all --yes