|
|
@ -1,38 +1,36 @@ |
|
|
|
language: php |
|
|
|
language: php |
|
|
|
sudo: false |
|
|
|
sudo: false |
|
|
|
dist: trusty |
|
|
|
dist: trusty |
|
|
|
|
|
|
|
branches: |
|
|
|
|
|
|
|
only: |
|
|
|
|
|
|
|
- dev |
|
|
|
|
|
|
|
- "/\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/" |
|
|
|
php: |
|
|
|
php: |
|
|
|
- 7.1 |
|
|
|
- 7.1 |
|
|
|
- 7.0 |
|
|
|
- 7.0 |
|
|
|
- 5.6 |
|
|
|
- 5.6 |
|
|
|
- nightly |
|
|
|
- nightly |
|
|
|
|
|
|
|
|
|
|
|
env: |
|
|
|
env: |
|
|
|
- TRAVIS_NODE_VERSION="6" |
|
|
|
- TRAVIS_NODE_VERSION="6" |
|
|
|
- TRAVIS_NODE_VERSION="7" |
|
|
|
- TRAVIS_NODE_VERSION="7" |
|
|
|
|
|
|
|
|
|
|
|
matrix: |
|
|
|
matrix: |
|
|
|
fast_finish: true |
|
|
|
fast_finish: true |
|
|
|
allow_failures: |
|
|
|
allow_failures: |
|
|
|
- php: nightly |
|
|
|
- php: nightly |
|
|
|
|
|
|
|
|
|
|
|
cache: |
|
|
|
cache: |
|
|
|
apt: true |
|
|
|
apt: true |
|
|
|
directories: |
|
|
|
directories: |
|
|
|
- $HOME/.composer/cache |
|
|
|
- $HOME/.composer/cache |
|
|
|
- $HOME/.yarn-cache |
|
|
|
- $HOME/.yarn-cache |
|
|
|
- vendor |
|
|
|
- vendor |
|
|
|
|
|
|
|
|
|
|
|
before_install: |
|
|
|
before_install: |
|
|
|
- composer self-update |
|
|
|
- composer self-update |
|
|
|
- source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION |
|
|
|
- source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION |
|
|
|
- export PATH=$HOME/.yarn/bin:$PATH && travis_retry curl -o- -L https://yarnpkg.com/install.sh | bash |
|
|
|
- export PATH=$HOME/.yarn/bin:$PATH && travis_retry curl -o- -L https://yarnpkg.com/install.sh | bash |
|
|
|
|
|
|
|
|
|
|
|
install: |
|
|
|
install: |
|
|
|
- node -v && yarn -V |
|
|
|
- node -v && yarn -V |
|
|
|
- travis_retry yarn |
|
|
|
- travis_retry yarn |
|
|
|
- composer install -o --prefer-dist --no-interaction |
|
|
|
- composer install -o --prefer-dist --no-interaction |
|
|
|
|
|
|
|
|
|
|
|
script: |
|
|
|
script: |
|
|
|
- yarn run test |
|
|
|
- yarn run test |
|
|
|
- yarn run build |
|
|
|
- yarn run build |
|
|
|