-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
55 lines (49 loc) · 1.56 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
48
49
50
51
52
53
54
55
env:
- DOCKER_COMPOSE_VERSION=1.23.2
services:
- docker
before_install:
- sudo apt-get update
- docker --version
- 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
before_script:
- pwd
- whoami
- docker --version
- docker-compose --version
- docker build -t proton_stretch_test:latest -f CI_Dockerfile .
- ./test-env-gen.sh
- ls -lart
- cat .test-env
- set -a && source .test-env
- docker-compose -f docker-compose-test.yaml down
- lsof -i tcp:5432 | xargs kill -9
- lsof -i tcp:6379 | xargs kill -9
- lsof -i tcp:4000 | xargs kill -9
- set -a && source .test-env
- docker-compose -f docker-compose-test.yaml up --force-recreate -d
- docker-compose ps
- docker ps -a
- docker logs proton_postgres
- docker logs proton_redis
- docker logs proton_test
- docker stop proton_test
- docker rm -f proton_test && docker image prune -f
- docker-compose ps
- docker ps -a
script:
- docker-compose -f docker-compose-test.yaml run -d --name proton_test --rm proton_test -T yes
- proton_test_results=$(docker wait proton_test)
- docker ps -a
- docker logs -f proton_test
- docker-compose ps
- travis_terminate $proton_test_results
after_script:
- docker-compose -f docker-compose-test.yaml down
- lsof -i tcp:5432 | xargs kill -9
- lsof -i tcp:6379 | xargs kill -9
- lsof -i tcp:4000 | xargs kill -9
- rm ./.test-env