forked from spotify/luigi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (62 loc) · 1.89 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
language: python
services:
- elasticsearch
- mysql
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache
- POSTGRES_USER=postgres
- GCS_TEST_PROJECT_ID=luigi-travistestenvironment
- GCS_TEST_BUCKET=luigi-travistestenvironment
- GOOGLE_APPLICATION_CREDENTIALS=test/gcloud-credentials.json
matrix:
- TOXENV=flake8
- TOXENV=docs
- TOXENV=py27-nonhdfs
- TOXENV=py33-nonhdfs
- TOXENV=py34-nonhdfs
- TOXENV=py27-unixsocket
- TOXENV=py33-unixsocket
- TOXENV=py34-unixsocket
- TOXENV=py27-cdh
- TOXENV=py33-cdh
- TOXENV=py34-cdh
- TOXENV=pypy-scheduler
- TOXENV=py27-gcloud
- TOXENV=py27-postgres
# - TOXENV=visualiser
# Disabling this test because of intermittent failures :-/
# Python 3.5 has to go here until Travis adds it to the default build images.
# https://github.com/travis-ci/travis-ci/issues/4794#issuecomment-143758799
matrix:
include:
- python: 3.5
env: TOXENV=py35-nonhdfs
- python: 3.5
env: TOXENV=py35-unixsocket
- python: 3.5
env: TOXENV=py35-cdh
sudo: false
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
# allow ssh loopback
- ssh-keygen -t rsa -N '' -C '' -f ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- ssh -o StrictHostKeyChecking=no localhost true
# 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