-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
47 lines (42 loc) · 1.24 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
before_script:
# load the requested modules on oberon
- module load anaconda/3 espeak/1.49.2 festival/2.4 shorten/3.6.1
abkhazia-build:
stage: build
script:
# create a Python virtual environment dedicated to the test (if not existing)
- conda create --name abkhazia-ci python=3 2> /dev/null || true
- conda activate abkhazia-ci
# install abkhazia
- KALDI_PATH=/shared/apps/abkhazia/kaldi ./configure
- pip install coverage pytest
- python setup.py build
- python setup.py install
abkhazia-test:
stage: test
script:
- conda activate abkhazia-ci
- ABKHAZIA_BUCKEYE=/scratch2/mbernard/ci/abkhazia_test_corpus pytest -v test
abkhazia-deploy:
stage: deploy
only:
refs:
- master
script:
- conda activate abkhazia
- cd /shared/apps/abkhazia
- git pull origin master
- python setup.py build
- python setup.py install
# documentation is available on https://docs.cognitive-ml.fr/abkhazia
documentation:
stage: deploy
only:
refs:
- master
script:
- module load texlive/2018
- conda activate abkhazia-ci
- pip install sphinx_rtd_theme
- sphinx-build docs/source docs/build
- scp -r docs/build/* cognitive-ml.fr:/var/www/docs.cognitive-ml.fr/abkhazia