forked from spotify/luigi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (38 loc) · 943 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
43
44
45
46
47
48
49
50
language: python
jdk: oraclejdk7
services:
- elasticsearch
- mysql
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache
- POSTGRES_USER=postgres
matrix:
- TOXENV=pep8
- TOXENV=docs
- TOXENV=py27-nonhdfs
- TOXENV=py33-nonhdfs
- TOXENV=py34-nonhdfs
- TOXENV=py27-cdh
- TOXENV=py33-cdh
- TOXENV=py34-cdh
sudo: false
cache:
- $HOME/.pip-cache
install:
- pip install tox
before_script:
- 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
after_failure:
- cat /home/travis/build/spotify/luigi/.tox/cdh/log/cdh-1.log
branches:
only:
- master