-
Notifications
You must be signed in to change notification settings - Fork 162
/
.travis.yml
35 lines (27 loc) · 931 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
sudo: required
dist: trusty
language: minimal
services:
- docker
cache:
directories:
- $HOME/.ivy2/
env:
global:
- DOCKER_COMPOSE_VERSION=1.22.0
matrix:
- PYTHON_VERSION=3.7
- PYTHON_VERSION=2.7
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
- docker-compose exec master bash -i -c "build/sbt tfs_testing/assembly"
script:
- docker-compose exec master bash -i -c "build/sbt tfs_testing/test"
- docker-compose exec master bash -i -c "python/run-tests.sh"