Skip to content

Commit

Permalink
Run tests with Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Feb 2, 2018
1 parent d4ba172 commit 62dac3b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: trusty
sudo: required

language: php

Expand All @@ -7,16 +7,23 @@ php:
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
- hhvm

before_script:
- pip install --user codecov
- composer self-update && composer install --dev
services:
- docker

before_install:
# need at least version 17.05, for ARG support in FROM
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce

install:
- make up PHP=$(phpenv version-name)

script:
- ./vendor/bin/phpunit
- make test PHP=$(phpenv version-name) UP=0 DOWN=0

after_success:
- codecov
- bash <(curl -s https://codecov.io/bash)

after_script:
- make down PHP=$(phpenv version-name)
2 changes: 2 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
PHP ?= '7.2'
UP ?= 1
DOWN ?= 1

docs:
wget http://apigen.org/apigen.phar
Expand Down

0 comments on commit 62dac3b

Please sign in to comment.