Skip to content

Commit

Permalink
integrate travis ci (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
bestlong committed Feb 13, 2019
1 parent f4f7ccc commit 2b34189
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: bash
sudo: required
services:
- docker

env:
matrix:
- PHP_VERSION=56
- PHP_VERSION=70
- PHP_VERSION=71
- PHP_VERSION=72
- PHP_VERSION=73

# Installing a newer Docker version
before_install:
- 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 install docker-ce
- docker version

script: ./travis-build.sh
9 changes: 9 additions & 0 deletions travis-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

#### halt script on error
set -xe

#### Build the Docker Images
if [ -n "${PHP_VERSION}" ]; then
docker build -f ./Dockerfile-${PHP_VERSION} .
fi

0 comments on commit 2b34189

Please sign in to comment.