forked from criteo/biggraphite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (46 loc) · 1.45 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
language: python
matrix:
include:
- python: '2.7'
env: TOXENV=py27-coverage
- python: 'pypy'
env: TOXENV=pypy-coverage
- python: 'pypy'
env: TOXENV=pylama
- language: java
jdk: oraclejdk8
env: JAVA=true
addons:
apt:
packages:
- oracle-java8-installer
env:
global:
- JAVA=false # Default
### As of 2016-04 Travis provides Cassandra 2.1 by default so we bundle our own
- CASSANDRA_VERSION=3.11.0
- CASSANDRA_HOME="${TRAVIS_BUILD_DIR}/.deps/apache-cassandra-${CASSANDRA_VERSION}/"
install:
### Java: We download now some dependencies to limit the number of messages later
- if $JAVA; then mvn dependency:resolve-plugins dependency:resolve -B -V ; fi
### Python build dependencies
- if [ -n "$TOXENV" ]; then pip install tox coveralls; fi
script:
### Java
- if $JAVA; then mvn verify -B -V ; fi
### Python
- if [ -n "$TOXENV" ]; then tox; fi
after_success:
### Python
- if [ -n "$TOXENV" ]; then coveralls; fi
### sudo is required by pip
sudo: required
### As of 2016-11, when Sudo is required, java8 is removed (WHY?)
dist: trusty
### As of 2016-04 Travis provides Cassandra 2.1 by default so we bundle our own
before_install:
- mkdir .deps
- cd .deps
- wget "http://www.us.apache.org/dist/cassandra/${CASSANDRA_VERSION}/apache-cassandra-${CASSANDRA_VERSION}-bin.tar.gz"
- tar -xzf "apache-cassandra-${CASSANDRA_VERSION}-bin.tar.gz"
- cd -