-
Notifications
You must be signed in to change notification settings - Fork 22
/
.gitlab-ci.yml
81 lines (75 loc) · 1.93 KB
/
.gitlab-ci.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
build-linux:
stage: build
script:
- module load anaconda/3
- conda activate shennong-ci
- conda env update -n shennong-ci -f environment.yml
- python setup.py install
test-linux:
stage: test
script:
- module load anaconda/3
- conda activate shennong-ci
- pytest -v
needs: ["build-linux"]
# build-osx:
# tags:
# - macos
# stage: build
# script:
# - conda activate shennong
# - sed '/pykaldi/d' environment.yml > environment.macos.yml
# - conda env update -n shennong -f environment.macos.yml
# - rm -f environment.macos.yml
# - python setup.py install
# test-osx:
# tags:
# - macos
# stage: test
# script:
# - conda activate shennong
# - python setup.py test
# needs: ["build-osx"]
# documentation is available on https://docs.cognitive-ml.fr/shennong
documentation:
stage: deploy
only:
refs:
- master
script:
- module load anaconda/3
- module load texlive/2018
- conda activate shennong-ci
- sphinx-build doc/source doc/build
- scp -r doc/build/* cognitive-ml.fr:/var/www/docs.cognitive-ml.fr/shennong
needs: ["test-linux"]
# shennong package is available on oberon with "conda activate shennong"
deploy-oberon:
stage: deploy
only:
refs:
- master
script:
- module load anaconda/3
- cd /shared/apps/shennong
- git pull origin master
- conda env update -n shennong -f environment.yml
- conda activate shennong
- python setup.py install
- pytest -v
needs: ["test-linux"]
# shennong package available on conda with "conda install -c coml
# shennong". Build and upload the package only on new git tags or
# manual triggers.
deploy-conda:
stage: deploy
only:
- tags
- triggers
script:
- module load anaconda/3
- conda activate shennong-ci
- cd .conda
- conda build -c coml -c conda-forge --user coml --token $CONDA_TOKEN --skip-existing .
- conda build purge
needs: ["test-linux"]