forked from unchartedsoftware/salt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (23 loc) · 959 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
sudo: required
language: bash
services:
- docker
env:
# build against multiple versions of spark!
- SPARK_VERSION=1.4.1
- SPARK_VERSION=1.5.2
- SPARK_VERSION=1.6.1
before_script:
# generate environment file so we can give the travis environment to our test container
- env | grep TRAVIS_ > travis.env
- echo "GRADLE_OPTS=-Dorg.gradle.native=false" >> travis.env
- echo "CI_NAME=travis_ci" >> travis.env
- echo "CI=true" >> travis.env
- echo "TRAVIS=true" >> travis.env
- echo "CONTINUOUS_INTEGRATION=true" >> travis.env
- echo "DEBIAN_FRONTEND=noninteractive" >> travis.env
- echo "HAS_JOSH_K_SEAL_OF_APPROVAL" >> travis.env
- echo $SPARK_VERSION >> travis.env
script:
# run test container
- docker run --env-file travis.env -v $(pwd)/src/test/resources/log4j.properties:/usr/local/spark/conf/log4j.properties -v $(pwd):/opt/salt --rm --workdir="/opt/salt" uncharted/sparklet:$SPARK_VERSION ./gradlew coverage coveralls