Skip to content

Commit

Permalink
Merge pull request #18 from localheinz/feature/dependencies
Browse files Browse the repository at this point in the history
Enhancement: Run tests against lowest, locked, and highest dependencies
  • Loading branch information
Jan0707 committed Jul 11, 2018
2 parents 0485a2b + ae9a67e commit 2547abc
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ trim_trailing_whitespace = true

[*.neon]
indent_style = tab

[*.yml]
indent_size = 2
101 changes: 80 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,87 @@
language: php

php:
- 7.0
- 7.1
- 7.2

cache:
directories:
- $HOME/.composer/cache/files
directories:
- $HOME/.composer/cache/files

before_install:
- phpenv config-rm xdebug.ini
- composer validate
stages:
- stan
- test

install:
- composer update --prefer-dist --prefer-stable --no-interaction
jobs:
include:
- stage: Stan

php: 7.2

install:
- composer install

script:
- vendor/bin/phpstan analyse -l max -c phpstan.neon src tests

- &TEST

stage: Test

php: 7.0

env: WITH_LOWEST=true

install:
- if [[ "$WITH_LOWEST" == "true" ]]; then composer update --prefer-lowest; fi
- if [[ "$WITH_LOCKED" == "true" ]]; then composer install; fi
- if [[ "$WITH_HIGHEST" == "true" ]]; then composer update; fi

script:
- vendor/bin/phpunit

- <<: *TEST

php: 7.0

env: WITH_LOCKED=true

- <<: *TEST

php: 7.0

env: WITH_HIGHEST=true

- <<: *TEST

php: 7.1

env: WITH_LOWEST=true

- <<: *TEST

php: 7.1

env: WITH_LOCKED=true

- <<: *TEST

php: 7.1

env: WITH_HIGHEST=true

- <<: *TEST

php: 7.2

env: WITH_LOWEST=true

- <<: *TEST

php: 7.2

env: WITH_LOCKED=true

- <<: *TEST

php: 7.2

env: WITH_HIGHEST=true

script:
- vendor/bin/phpstan analyse -l max -c phpstan.neon src tests
- vendor/bin/phpunit

jobs:
include:
- stage: Test
php: 7.0
env: PREFER_LOWEST=true
install: composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction

0 comments on commit 2547abc

Please sign in to comment.