-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (51 loc) · 1.12 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
sudo: required
language: python
python:
- "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7-dev" # 3.7 development branch
services:
- docker
addons:
apt:
packages:
- tree
- oracle-java8-set-default
- docker-ce
before_install:
- export PYTHON_MAJOR_VERSION=$(echo ${TRAVIS_PYTHON_VERSION:0:1})
- echo "Python major version is ${PYTHON_MAJOR_VERSION}"
install:
- pip install -r requirements/test.txt
- pip install tox-travis
- pip install codecov
- pip install .
before_script:
- bash ./scripts/antlr4.sh download
- bash ./scripts/antlr4.sh run ${PYTHON_MAJOR_VERSION}
script:
- tox
after_success:
- codecov
before_deploy:
- export BOLTUN_PACKAGE_VERSION=$(python setup.py --version)
- bash ./scripts/pip.sh build
deploy:
- provider: script
script: bash ./scripts/pip.sh upload
skip_cleanup: true
on:
python: 3.6
branch: master
tags: true
- provider: script
script: bash ./scripts/docker.sh push ${BOLTUN_PACKAGE_VERSION} latest
skip_cleanup: true
on:
python: 3.6
branch: master
tags: true
after_deploy:
- echo 'Successful deployment'