-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
38 lines (38 loc) · 842 Bytes
/
.travis.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
version: ~> 1.0
os: linux
language: python
env:
- TEST_SUITE='doctest'
- TEST_SUITE='unit'
- TEST_SUITE='integration'
- TEST_SUITE='reference'
python:
- "3.5"
- "3.6"
- "3.7"
install:
- pip install coveralls
- pip install .
- ./test-reference/install.sh
script:
- |
case ${TEST_SUITE} in
doctest)
python -m unittest pa193mnemonicslytherin.test_doctest ;
;;
unit)
python -m unittest pa193mnemonicslytherin/test_mnemonic.py ;
;;
integration)
python -m unittest pa193mnemonicslytherin/test_mnemoniccli.py ;
;;
reference)
python -m unittest discover -s ./test-reference ;
;;
*)
echo "Error: unknown TEST_SUITE in Travis CI config" 1>&2 ; false ;
;;
esac
after_success:
- coverage run --source=pa193mnemonicslytherin setup.py test
- coveralls