Skip to content

Commit e93680e

Browse files
committed
integrate travis ci
1 parent 1dffc48 commit e93680e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: bash
2+
sudo: required
3+
services:
4+
- docker
5+
6+
env:
7+
matrix:
8+
- PHP_VERSION=56
9+
- PHP_VERSION=70
10+
- PHP_VERSION=71
11+
- PHP_VERSION=72
12+
- PHP_VERSION=73
13+
14+
# Installing a newer Docker version
15+
before_install:
16+
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
17+
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
18+
- sudo apt-get update
19+
- sudo apt-get -y install docker-ce
20+
- docker version
21+
22+
script: ./travis-build.sh

travis-build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
#### halt script on error
4+
set -xe
5+
6+
#### Build the Docker Images
7+
if [ -n "${PHP_VERSION}" ]; then
8+
docker build -f ./Dockerfile-${PHP_VERSION} .
9+
fi

0 commit comments

Comments
 (0)