This repository has been archived by the owner on Jan 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
/
.travis.yml
57 lines (50 loc) · 1.69 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
language: python
python:
- "2.7"
sudo: false
cache:
directories:
- $HOME/.cache/pip
- /tmp/proto3.1.0
install:
- pip install pip --upgrade
# RDFLib requres html5lib; html5lib requires setuptools version 18.5 or above;
- pip install setuptools==25.1.0
- python setup.py sdist
- pip install dist/ga4gh*.tar.gz -c constraints.txt
# every installable in setup.py's entry_points should be tested here
- ga4gh_configtest --version
- ga4gh_server --version
- ga4gh_repo --version
before_script:
- pip install -r dev-requirements.txt
- python scripts/build_test_data.py
before_install:
- bash tools/travis-install-protoc.sh 3.1.0
- export PATH=/tmp/proto3.1.0/bin:$PATH
# run_tests.py runs everything under the script: tag so only put commands
# under it that we want to run (and want to be able to run) as local tests
script:
- flake8 configtest_dev.py convert_error_code.py
repo_dev.py server_dev.py
setup.py
tests ga4gh scripts
- python -mnose tests
--with-coverage --cover-package ga4gh.server
--cover-inclusive --cover-min-percentage 85
--cover-branches --cover-erase
- make clean -C docs
- make -C docs
after_success:
# run codecov
- bash <(curl -s https://codecov.io/bash)
# deploy to pypi when there is a new tag in master after a successful build
deploy:
provider: pypi
user: dannycolligan
password:
secure: ffTNL0M96N0j4rLNxnBXUFg8R+7r0FJG2yXOsog/9QIK5NNIKrgI/a0CfIMxR4TCdTkK3x2O+k6gwrjiNmGAVi93brOIJHV5D5nq5PM5P0TnugIHVY6iwufltvWZn1NN2/8n93RKjNXya77nR53sUhamIGLad8LK8eQGlOU5EMg=
skip_upload_docs: true
on:
repo: ga4gh/ga4gh-server
tags: true