forked from oVirt/ovirt-container-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (31 loc) · 1.2 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
sudo: required
services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION=1.8.0
- COLUMNS=120
matrix:
- MAJOR_VERSION=4.0
- MAJOR_VERSION=3.6
before_install:
# upgrade docker-compose
- sudo rm -rf /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-compose version
- export DOCKERIZE_VERSION=v0.2.0
- wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
- tar -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
script:
- stty cols 120 # Increase console width to make greps more reliable
- docker-compose build
- docker-compose up -d
- docker-compose ps
- docker-compose ps | grep Up
- docker-compose ps | grep "8443/tcp"
- docker-compose ps | grep "8080/tcp"
- ./dockerize -wait http://localhost:8080/ovirt-engine/services/health -timeout 10m
- wget -O - http://localhost:8080/ovirt-engine/services/health
- wget --no-check-certificate -O - https://localhost:8443/ovirt-engine/services/health