Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
Use different envs
Browse files Browse the repository at this point in the history
  • Loading branch information
J0WI committed Dec 11, 2018
1 parent 1879be9 commit 6fe8d22
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
language: bash
services: docker

env:
- VARIANT=apache
- VARIANT=fpm
- VARIANT=fpm-alpine

install:
- git clone https://github.com/docker-library/official-images.git ~/official-images

before_script:
- env | sort
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- cd "$VARIANT"
- image="matomo:${VARIANT}"

script:
- travis_retry docker build -t piwik:fpm-alpine fpm-alpine
- ~/official-images/test/run.sh piwik:fpm-alpine
- travis_retry docker build -t piwik:fpm fpm
- ~/official-images/test/run.sh piwik:fpm
- travis_retry docker build -t piwik:apache apache
- ~/official-images/test/run.sh piwik:apache
- |
(
set -Eeuo pipefail
set -x
docker build -t "$image" .
~/official-images/test/run.sh "$image"
)
after_script:
- docker images
Expand Down

0 comments on commit 6fe8d22

Please sign in to comment.