-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
47 lines (47 loc) · 1.47 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
language: generic
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.23.1
before_install:
- 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
script:
- docker build -t metastore:build images/metastore
- docker build -t presto:build images/presto
- docker build -t presto-testo:build images/presto-testo
- docker build -t metastore-testo:build images/metastore-testo
- docker build -t postgres-testo:build images/postgres-testo
- docker build -t minio-testo:build images/minio-testo
- chmod +x scripts/deploy.sh
deploy:
- provider: script
skip_cleanup: true
script:
./scripts/deploy.sh metastore master;
./scripts/deploy.sh presto master;
./scripts/deploy.sh presto-testo master;
./scripts/deploy.sh metastore-testo master;
./scripts/deploy.sh postgres-testo master;
./scripts/deploy.sh minio-testo master;
on:
branch: master
- provider: script
skip_cleanup: true
script:
./scripts/deploy.sh metastore release;
./scripts/deploy.sh presto release;
./scripts/deploy.sh presto-testo release;
./scripts/deploy.sh metastore-testo release;
./scripts/deploy.sh postgres-testo release;
./scripts/deploy.sh minio-testo release;
on:
tags: true
branches:
only:
- master
- /\d{1,3}\.\d{1,3}\.\d{1,3}/
git:
submodules: false