forked from spotify/luigi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (89 loc) · 2.48 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: python
python: 2.7
dist: xenial
services:
- elasticsearch
- mysql
- docker
- postgresql
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache
- POSTGRES_USER=postgres
- DATAPROC_TEST_PROJECT_ID=luigi-travistestenvironment
- GCS_TEST_PROJECT_ID=luigi-travistestenvironment
- GCS_TEST_BUCKET=luigi-travistestenvironment
- BQ_TEST_PROJECT_ID=luigi-travistestenvironment
- BQ_TEST_INPUT_BUCKET=luigi-bigquery-test
- GOOGLE_APPLICATION_CREDENTIALS=test/gcloud-credentials.json
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=accesskey
- AWS_SECRET_ACCESS_KEY=secretkey
sudo: false
# Python 3.7 needs to have its dist/sudo flags set in matrix so they don't
# break the other python builds.
# https://github.com/travis-ci/travis-ci/issues/9815
matrix:
include:
- env: TOXENV=flake8
- env: TOXENV=docs
- env: TOXENV=py27-core
- env: TOXENV=py27-dropbox
if: env(DROPBOX_APP_TOKEN) is present
- env: TOXENV=py27-unixsocket
- env: TOXENV=py27-apache
- env: TOXENV=py27-aws
- env: TOXENV=py27-postgres
- python: 3.6
env: TOXENV=py36-core
- python: 3.6
env: TOXENV=py36-dropbox
if: env(DROPBOX_APP_TOKEN) is present
- python: 3.6
env: TOXENV=py36-unixsocket
- python: 3.7
dist: xenial
sudo: true
env: TOXENV=py37-core
- python: 3.7
dist: xenial
sudo: true
env: TOXENV=py37-dropbox
if: env(DROPBOX_APP_TOKEN) is present
- python: 3.7
dist: xenial
sudo: true
env: TOXENV=py37-unixsocket
- python: 3.7
dist: xenial
sudo: true
env: TOXENV=py37-apache
- python: 3.7
dist: xenial
sudo: true
env: TOXENV=py37-aws
- python: 3.7
dist: xenial
sudo: true
env: TOXENV=py37-azureblob
cache:
directories:
- $HOME/.pip-cache
install:
- pip install 'tox<3.0'
before_install:
- openssl aes-256-cbc -K $encrypted_e05f6ccc270e_key -iv $encrypted_e05f6ccc270e_iv -in test/gcloud-credentials.json.enc -out test/gcloud-credentials.json -d
|| export DIDNT_CREATE_GCP_CREDS=1
before_script:
# TODO, only do this step for the postgres environment
- psql -c 'create database spotify;' -U postgres
# Create mysql database if possible but fail silently if not available.
- mysql -e 'create database IF NOT EXISTS luigi_test;' -uroot || true
script:
- tox --version
- ./scripts/ci/conditional_tox.sh
branches:
only:
- master
notifications:
email: false