forked from databricks/spark-deep-learning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
36 lines (28 loc) · 926 Bytes
/
.travis.yml
File metadata and controls
36 lines (28 loc) · 926 Bytes
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
sudo: required
dist: trusty
language: minimal
env:
global:
- DOCKER_COMPOSE_VERSION=1.22.0
- PYTHON_VERSION=3.7
matrix:
- TEST_SUITE=pylint
- TEST_SUITE=python-tests
- TEST_SUITE=scala-tests
services:
- docker
cache:
directories:
- $HOME/.ivy2/
before_install:
# update docker compose to the specified version, https://docs.travis-ci.com/user/docker/#using-docker-compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install :
- docker-compose build --build-arg PYTHON_VERSION=$PYTHON_VERSION
- docker-compose up -d --scale worker=2
- docker-compose exec master bash -i -c "build/sbt assembly"
script:
- docker-compose exec master bash -i -c "dev/run.py $TEST_SUITE"