-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
39 lines (32 loc) · 866 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
36
37
38
39
---
sudo: required
env:
global:
- DOCKER_COMPOSE_VERSION: 1.14.0
matrix:
- TEST_DIR: "flask"
- TEST_DIR: "php"
# - TEST_DIR: "symfony"
- TEST_DIR: "traefik"
services:
- docker
before_install:
# Upgrade 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
# Upgrade Docker.
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
before_script:
- cd $TEST_DIR
script:
- ls
# Extra Docker Compose file for Traefik.
- |
if [ "${TEST_DIR}" == "traefik" ]; then
docker-compose -f traefik.yml up -d
fi
- docker-compose up -d
- docker-compose stop