forked from docksal/service-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 1.13 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
45
46
47
48
49
language: generic
services:
- docker
env:
global:
- REPO=docksal/cli
- LATEST_VERSION=7.2
- DOCKSAL_VERSION=develop
matrix:
- VERSION=5.6
- VERSION=7.0
- VERSION=7.1
- VERSION=7.2
# Skip building master.
# Stable image tags are pushed during release tag builds so that stable and release tags match on Docker Hub.
branches:
except:
- master
before_install:
- sudo apt-get -qq update
- sudo apt-get install libfcgi0ldbl # cgi-fcgi binary used in tests
install:
# Install Docksal to have a matching versions of Docker on the build host
- curl -fsSL https://get.docksal.io | DOCKSAL_VERSION=${DOCKSAL_VERSION} bash
- fin version
- fin sysinfo
script:
# Build the base image
- cd ${TRAVIS_BUILD_DIR}/${VERSION}
- travis_retry make # Retry builds, as pecl.php.net tends to time out often
- make test
# Build the Cloud9 flavor
- cd ${TRAVIS_BUILD_DIR}/cloud9
- travis_retry make
- make test
after_success:
- docker image ls
- ${TRAVIS_BUILD_DIR}/scripts/docker-push.sh
after_failure:
- cd ${TRAVIS_BUILD_DIR}/${VERSION} && make logs
- cd ${TRAVIS_BUILD_DIR}/cloud9 && make logs