forked from saltfactory/docker-yobi
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
37 lines (28 loc) · 968 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
language: bash
sudo: required
services:
- docker
addons:
mariadb: '10.0'
env:
DOCKER_COMPOSE_VERSION: 1.11.2
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
- 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:
- mysql -uroot -e "create user 'yona'@'localhost' IDENTIFIED BY 'yonadan';"
- mysql -uroot -e "set global innodb_large_prefix = ON;"
- mysql -uroot -e "create database yona DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_bin;"
- mysql -uroot -e "GRANT ALL ON yona.* to 'yona'@'localhost';"
script:
- docker-compose build
- docker-compose up -d
- docker-compose logs
after_script:
- docker-compose down
notifications:
email: false