forked from DecisionsDev/odm-ondocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (41 loc) · 2.64 KB
/
.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
40
41
42
43
44
language: generic
cache:
directories:
- "$HOME/.cache"
sudo: required
#services:
# - docker
os:
- linux
env:
matrix:
- DOCKER_COMPOSE_VERSION=1.26.1
global:
secure: MR+cKxC7Big1DcXqbimRt4BLdUyIz7Bh8/gxtjmpJ+vr046jVec1mlnQyRtPAAAlS8W1OZrEuY9YzYl4Gq5s7dieEk/ERUwuQeUTXkg3jzFdC05JbcYWhDlsjLbZuLjVamH2wcXnf3VpJDZ/lqM1Tn2wTGkn5cqT8UdLC3qRDgRyKCT8mnKoIEkw2Bx8YyRZ2FR2xg8UjDXRnNf5El0jJCnK5d82YumOeMYN7PUBRkyypv/obluE1dcZ1gbFdj3ln7s752+Rjmh0R3+GvV67pApv0HlS6ceDETp+ynh2tDFCuLJtevJTfwTW2KOST9Mo53vuBSFpi+Ts8Yb08rYpK6eg4zbje3NSLsLPoKLlHSQSAWsuzrBGk4KlnjdzcUmB+RgDbRFrz3Vo+vhQfG+4qdmX4mNIE9/OP4s6BaLagt6iYmJDlXj7rOky9EbttxXYUJaw5wtkBafYG4bJjVaqJk0KJRrYIArTRTibKcH9U+hrJeLbepHMLtEAP930I7S+TAPQ70Zi0lnJrvAf/Cm7mT9Js+Uah3hijkrOu1NjHe2d8jF8kNmhHbIckhvNwkXqLbd58ypjDBVABGIHHUtmX3mVCrfkCyCFVJqCzPw1ZzlLWZ4qi90WhsAnGL0ySI3sp3vqVdZ3gqFs7QzIMPtLXUOgDji62W3qZopgK2NdWkI=
before_install:
- mkdir -p $HOME/.cache
- echo "${REGISTRY_PASSWORD}" | docker login docker.io --username ${REGISTRY_USER} --password-stdin
- 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 -o Dpkg::Options::="--force-confnew" install docker-ce
- 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:
- sh -c "! egrep -ri '(LICENSE[D]?).*(IBM)' --exclude='*.tar.gz' --exclude='.travis.yml'
--exclude-dir='licenses' --exclude=index.jsp --exclude-dir=.git --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
- sudo docker-compose up -d
- "./test/suite.sh"
notifications:
slack:
secure: bm0bJKtgJbE8XJnvEnqdcWq24QR2SINTClPXEP0EZveOBUyq+6EY2ig2G0ZhZ8kMm63ndThY8VnulgpmpF/etqk4IEb4Ar1N53cKmd3HD1VIRVxbH1iJnNK1ZB2w2s0aBHo0vvyQNNLPf+Q9QnOJZSFuZrK24Bu4EXshBR6zMBzG9bEqWFt/kdXkoLXW8MyraVI1ycrtKBmdm0ccQK69TleG1T+hsHxisUDOKVOh46hUgfahhawzJ0PyUfajtRrjjXni4WP4kURltgtDbkohhNJGc2ITqV7k6Z4Q/2Ql/7VN9hcXK+kPiTAsX84wuTeurQumisU2Fsq9pwfLQPK+aV9RmA+piNxCA/MhX46o9mjrkNtYjKa9sWwzZmI0o1wLbOxDcyxc6ZkC/B1FvKWbLg5phsRmuhXmxBJSsDDwbUpm9WlO5xokIznP/MUFWcacIzpzoawOlYYe5WhPSvrTwfqmWti0fWkEApIWxQMG7OewCpfxt33SEyXR6/n1B2XTlPDuzpHWfYLqwJTNtjUwNHx1USFjADVgIvyEzDALVlm69R5c90g0ff7818ZvjSsv8/sa/nrUxdYWUKrB6e6Nu6+/091ExFIO/w9vtjXLLi+x3qz0ATWDoMIozyJy6FwWWQDDczfN0CWWB3tFJ6p2AS4vq5ZJbDlIoltOib/J7EY=