-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
38 lines (32 loc) · 996 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
dist: trusty
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.15.0
before_install:
# Inject API keys
- openssl aes-256-cbc -K $encrypted_98966c40c579_key -iv $encrypted_98966c40c579_iv
-in secret_keys.tar.enc -out secret_keys.tar -d
- tar xvf secret_keys.tar
# 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
# Docker
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
before_script:
- chmod +x Api/run.sh
- chmod +x MongoDB/run.sh &&
chmod +x MongoDB/mongo_db_script.sh &&
chmod +x MongoDB/set_mongodb_password.sh
- chmod +x SQLServer/run.sh
- chmod +x Web/run.sh
- docker-compose --verbose up -d --build
- docker ps
script:
- exit 0
after_script:
- docker-compose down