fixing CI build failed

This commit is contained in:
Shao Yu Lung 2017-05-04 16:15:28 +08:00
parent 61168cb9d3
commit 61aabf664e
2 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,11 @@ env:
- PHP_VERSION=71 - PHP_VERSION=71
- HUGO_VERSION=0.20.2 - HUGO_VERSION=0.20.2
# Installing a newer Docker version
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
script: ./travis-build.sh script: ./travis-build.sh
deploy: deploy:

View File

@ -3,6 +3,12 @@
#### halt script on error #### halt script on error
set -e set -e
echo '##### Print docker version'
docker --version
echo '##### Print environment'
env | sort
#### Build the Docker Images #### Build the Docker Images
if [ -n "${PHP_VERSION}" ]; then if [ -n "${PHP_VERSION}" ]; then
cp env-example .env cp env-example .env