2016-09-04 11:58:06 +00:00
|
|
|
language: php
|
2016-08-25 15:55:00 +00:00
|
|
|
|
2016-09-04 11:58:06 +00:00
|
|
|
php:
|
|
|
|
- '7.0'
|
2016-08-25 15:55:00 +00:00
|
|
|
|
2016-10-12 07:54:25 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-02-03 12:19:02 +00:00
|
|
|
- $HOME/.npm
|
2017-02-03 12:20:49 +00:00
|
|
|
- $HOME/.composer/cache
|
2016-10-12 07:54:25 +00:00
|
|
|
|
2016-09-04 11:58:06 +00:00
|
|
|
before_install:
|
2016-10-12 07:54:25 +00:00
|
|
|
- nvm install 6.5.0
|
|
|
|
- nvm use 6.5.0
|
2016-09-04 11:58:06 +00:00
|
|
|
|
2016-08-25 15:55:00 +00:00
|
|
|
install:
|
|
|
|
- npm install
|
2017-02-03 12:19:02 +00:00
|
|
|
- composer install --prefer-dist
|
2016-08-25 15:55:00 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- npm run lint
|
2016-09-04 11:56:59 +00:00
|
|
|
- npm run compile
|
|
|
|
|
2016-09-04 11:58:06 +00:00
|
|
|
after_success:
|
|
|
|
# If the build was triggered by a tag, publish the new version
|
|
|
|
- 'if [[ $TRAVIS_TAG == v* ]]; then vsce publish -p $VSCE_TOKEN; fi'
|