-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |