forked from DecisionsDev/odm-ondocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (29 loc) · 1010 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
language: generic
cache:
directories:
- $HOME/.cache
sudo: required
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.21.1
before_install:
- mkdir -p $HOME/.cache
- 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 --version
- docker-compose version
script:
# Make error if 'LICENSE(D) and IBM are found on a same line.'
- sh -c "! egrep -ri '(LICENSE[D]?).*(IBM)' --exclude='*.tar.gz' --exclude='.travis.yml' --exclude-dir='licenses' --exclude=index.jsp --exclude=error.jsp --exclude-dir='dockerhub' ."
- chmod +x build.sh
- ./build.sh
- sudo service postgresql stop
- while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done
- export LICENSE=accept
- docker-compose up -d
- ./test/suite.sh
notifications:
slack: ibm-cloud:LbtLkB6RShLAntBS4thdFlqY