forked from bootphon/phonemizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
67 lines (59 loc) · 1.76 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
before_script:
# load the requested modules on oberon
- module load anaconda/3 festival/2.4 mbrola
phonemizer-build:
stage: build
script:
# create a Python virtual environment dedicated to the test (if not existing)
- conda create --name phonemizer-ci python=3 2> /dev/null || true
- conda activate phonemizer-ci
# install the phonemizer
- pip install coverage
- python setup.py build
- python setup.py install
.phonemizer-test: &phonemizer-test
# run the unit tests within the CI environment
- conda activate phonemizer-ci
- phonemize --version
- python setup.py test
phonemizer-test-espeak-1-48-04:
stage: test
script:
# run the unit tests within the CI environment
- module unload espeak && module load espeak/1.48.04
- *phonemizer-test
phonemizer-test-espeak-1-49-2:
stage: test
script:
# run the unit tests within the CI environment
- module unload espeak && module load espeak/1.49.2
- *phonemizer-test
phonemizer-test-espeak-1-50:
stage: test
script:
# run the unit tests within the CI environment
- module unload espeak && module load espeak/1.50
- *phonemizer-test
phonemizer-oberon:
# install phonemizer in the "wordseg" virtual environment on oberon (users just
# have to type "conda activate wordseg" to use it)
stage: deploy
script:
- conda activate wordseg
- cd /shared/apps/phonemizer
- git pull origin master
- python setup.py install
only:
- tags
phonemizer-pypi:
# upload the release on PyPI
stage: deploy
script:
- conda activate phonemizer-ci
- pip install -U twine
- rm -rf dist
- python setup.py sdist bdist_wheel
- twine check dist/*
- twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD --non-interactive dist/*
only:
- tags