forked from dnanexus/dx-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (63 loc) · 1.95 KB
/
.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
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
language: python
cache:
directories:
- $HOME/.cache
- $HOME/.m2
python:
- 2.7
- 3.3
- 3.4
- 3.5
- pypy
matrix:
include:
- language: generic
python: 2.7
os: osx
- language: generic
python: 3.3
os: osx
- language: generic
python: 3.5
os: osx
- language: generic
python: pypy
os: osx
# See https://github.com/travis-ci/travis-ci/issues/2839
before_install:
- if [[ $TRAVIS_OS_NAME == osx ]]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
install:
- echo flake8 >> src/python/requirements_test.txt
- echo flask >> src/python/requirements_test.txt
- make python
- make java
script:
- (cd src/java; mvn -Dtest=DXJSONTest,InputAndOutputParameterTest test)
- source environment
- dx env
- dx help all > /dev/null
- dx-app-wizard --help > /dev/null
- dx-log-stream --help > /dev/null
- cd src/python
- test/test_dxpy_utils.py -v
- trap 'pkill -f api.py' EXIT
- test/mock_api/api.py &
- dx api system setPayload
- dx select project-0123456789ABCDEF01234567
- dx download file-0123456789ABCDEF01234567
- flake8 dxpy --exclude=templates,shlex.py,spelling_corrector.py,compat.py,pathmatch.py --ignore=E501,E302,E226,E703,E201,E202,E241,E203,E126,E123,E262,E116,E127,E261,E265,E111,E221,E402,E124,F841,E401,E231,W291,E251,E502,E301,W293,E225,E128,E303,E266,E711,E113,F401,E701,E712,E114,E702,E222,E131,E125,W391,E121,E115,F403,F405,F821
#- test/test_dxpy.py -v
#- test/test_dxclient.py -v
#- test/test_dx_completion.py -v
#- test/test_dx_app_wizard_and_run_app_locally.py -v
notifications:
email: true
flowdock:
secure: "YqJSb37MzklHGvHK7tQf4DL6QfgPlqQL4Dg+dEg6w+Jr4Co0bt/VpDcsiny6Bmdnyc8IAp5VZ7cAJ3XuAEyI1lOOjGCRuRjJ9rYhA3VgtH39/ZH+CYSa85h6VQ2W7aRIjAbIzw2JTba/W2PcL+34xw6OlDhQh+VC3nZW13FqmkY="
env:
global:
- DNANEXUS_INSTALL_PYTHON_TEST_DEPS=1
- DX_APISERVER_HOST=localhost
- DX_APISERVER_PORT=5000
- DX_APISERVER_PROTOCOL=http
sudo: false