-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (36 loc) · 949 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
39
40
41
42
language: python
dist: trusty
sudo: required
cache: pip
services:
- docker
python: 3.6
env:
- TOX_ENV=integration_tests-docker
DOCKER_CONTAINER=jenkins/jenkins
EXTRA_ARGS="-n1"
CODECOV=integration
- TOX_ENV=integration_tests-docker
DOCKER_CONTAINER=jenkins/jenkins:lts
EXTRA_ARGS="-n1 --jenkins-docker jenkins/jenkins:lts"
- TOX_ENV=integration_tests_with_jjb_trunk-docker
DOCKER_CONTAINER=jenkins/jenkins
EXTRA_ARGS="-n1"
- TOX_ENV=integration_tests-not_docker
CODECOV=integration
- TOX_ENV=integration_tests_with_jjb_trunk-not_docker
- TOX_ENV=py36
CODECOV=unit
- TOX_ENV=lint
- TOX_ENV=mypy
- TOX_ENV=docs
matrix:
include:
- python: 3.5-dev
env: TOX_ENV=py35
install:
- pip install codecov tox
script:
- case $TOX_ENV in integration_tests*-docker) docker pull $DOCKER_CONTAINER ;; esac
- tox -e $TOX_ENV -- $EXTRA_ARGS
- if [ -n "$CODECOV" ]; then codecov --flags $CODECOV; fi