XBackBone/.travis.yml
Pietro Marangon 8b407ba2c6 Docker container (#9)
* Update .travis.yml

* Update README.md
2018-10-14 00:24:28 +02:00

39 lines
1.4 KiB
YAML

notifications:
on_success: never
on_failure: always
matrix:
include:
- language: php
php:
- '7.1'
# Remove comment on if unit test ready
#before_script:
# - if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} \; | grep "Fatal error"; then exit 1; fi
# - composer self-update
# - composer install --prefer-source --no-interaction --dev
script:
# Remove on if unit test ready
- if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} \; | grep "Fatal error"; then exit 1; fi
- language: php
php:
- '7.2'
# Remove comment on if unit test ready
#before_script:
# - if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} \; | grep "Fatal error"; then exit 1; fi
# - composer self-update
# - composer install --prefer-source --no-interaction --dev
script:
# Remove on if unit test ready
- if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} \; | grep "Fatal error"; then exit 1; fi
- language: node_js
node_js:
- "lts/*"
before_script:
- npm install grunt-cli -g
script:
- grunt test
after_script:
- curl -H "Content-Type: application/json" --data '{"docker_tag": "master"}' -X POST https://registry.hub.docker.com/u/pe46dro/xbackbone-docker/trigger/505df075-f5b6-48bf-a22c-ce678f477929/