-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
30 lines (24 loc) · 1018 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
sudo: required
services:
- docker
env:
DOCKER_COMPOSE_VERSION: 1.17.0
before_install:
# docker-compose upgrade
- sudo rm -f /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 upgrade
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
# need git for the test
- sudo apt-get -y install git
# build an run ezmaster-globs
- make build
- GITHUB_ORGANIZATIONS="ezmaster-globs-tests" docker-compose -f ./docker-compose.debug.yml up -d
- sleep 120 ; docker-compose -f ./docker-compose.debug.yml logs
script:
- git clone http://127.0.0.1:8080/ezmaster-globs-tests/travis-ci-clone-test.git