-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (31 loc) · 889 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
38
39
40
language: python
sudo: required
services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION=1.10.0
- LATEST_APACHE=2.4
matrix:
- APACHE=2.4
install:
- 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
script:
- cd ./$APACHE
- make && make test
after_success: |
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && ([ "$TRAVIS_BRANCH" == "master" ] || [ -n "$TRAVIS_TAG" ]); then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
make release
if [ -n "$TRAVIS_TAG" ]; then
make VERSION="$APACHE-$TRAVIS_TAG" release
fi
if [ "$APACHE" == "$LATEST_APACHE" ]; then
make VERSION=latest release
fi
fi
after_failure:
- make logs