Skip to content

Commit

Permalink
Merge pull request #101 from sanpii/test-lowest-requirements
Browse files Browse the repository at this point in the history
allow tests with lower requirements
  • Loading branch information
chanmix51 committed Feb 22, 2018
2 parents 6b41a1c + 49c226d commit 53b7261
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
language: php

php:
- "5.5"
- "5.6"
- "7.0"
- "7.1"
- "7.2"
- "nightly"

matrix:
allow_failures:
- php: "nightly"
- php: "hhvm"

env:
matrix:
- DEPS=hight
- DEPS=low

services: postgresql

addons:
postgresql: "9.2"

before_script:
- psql -c 'CREATE DATABASE pomm_test' -U postgres -h 127.0.0.1 postgres
- psql -c 'CREATE EXTENSION hstore' -U postgres -h 127.0.0.1 pomm_test
- psql -c 'CREATE EXTENSION ltree' -U postgres -h 127.0.0.1 pomm_test
install: composer install --dev

install:
- composer install --dev
- test "$DEPS" == "hight" || composer update --prefer-lowest
- test "$DEPS" == "hight" || composer update atoum/atoum

script:
- ./vendor/bin/phpcs --standard=psr2 --runtime-set ignore_warnings_on_exit true --report=summary sources
- php vendor/atoum/atoum/bin/atoum --no-code-coverage -d sources/tests/Unit/

0 comments on commit 53b7261

Please sign in to comment.