forked from spotify/luigi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (47 loc) · 1.4 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
language: python
jdk: oraclejdk7
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=pep8
- TOXENV=docs
- TOXENV=py27-nonhdfs
- TOXENV=py33-nonhdfs
- TOXENV=py34-nonhdfs
- TOXENV=py27-cdh
- TOXENV=py33-cdh
- TOXENV=py34-cdh
- TOXENV=pypy-scheduler
- TOXENV=py27-gcloud
- TOXENV=py27-postgres
sudo: false
cache:
- $HOME/.pip-cache
install:
- pip install tox
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