-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
36 lines (30 loc) · 1.18 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
sudo: required
services:
- docker
branches:
only:
# - nothing
- master
# - staging
# - multiQ
install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# before_script:
# # Load cached docker images
# - if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
script:
- docker login -u mohsenasm -p $DOCKER_PASSWORD && docker-compose -f spark-client-with-tpcds-docker-compose.yml build && docker-compose -f spark-client-with-tpcds-docker-compose.yml push
- docker login -u mohsenasm -p $DOCKER_PASSWORD && cd spark-log-viewer && docker-compose build && docker-compose push
# before_cache:
# # Save tagged docker images
# - >
# mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
# | xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
#
# cache:
# bundler: true
# directories:
# - $HOME/docker