This repository has been archived by the owner on May 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.travis.yml
71 lines (71 loc) · 1.68 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
language: python
sudo: false
dist: xenial
services:
- docker
cache:
directories:
- "$HOME/.cache/pip"
stages:
- style
- test
- name: deploy
# require any tag name to deploy
if: tag =~ .*
addons:
apt:
packages:
- libsnappy-dev
_install: &_install
- gimme 1.8
- source ~/.gimme/envs/latest.env
- pip install --upgrade pip
- if [[ $TRAVIS_PYTHON_VERSION < 3.7 ]]; then pip install tensorflow; fi
- pip install -r requirements.txt codecov
- pip install -e .[pandas]
_coverage: &_coverage
- SCRIPT="coverage run --concurrency=multiprocessing -m unittest discover && coverage combine"
_deploy: &_deploy
provider: script
script: twine upload dist/*py3-none-any* -u $PYPI_LOGIN -p $PYPI_PASS
skip_cleanup: true
on:
tags: true
matrix:
include:
- stage: style
python: 3.7
env: SCRIPT="make check && cd doc && make"
install:
- pip install -r doc/requirements.txt -r requirements-lint.txt
- stage: test
python: 3.5
dist: trusty
env: *_coverage
install: *_install
- python: 3.6
dist: trusty
env: *_coverage
install: *_install
after_success:
- codecov
- python: 3.7
env: *_coverage
install: *_install
- stage: deploy
python: 3.5
install:
- pip3 install --upgrade pip
- pip3 install twine
before_script: skip
script:
- python3 setup.py bdist_wheel
deploy: *_deploy
fast_finish: true
before_script:
- docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
- docker exec -it bblfshd bblfshctl driver install python bblfsh/python-driver
script:
- (eval "$SCRIPT")
notifications:
email: false