forked from OpendataCH/Transport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 867 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
cache:
directories:
- $HOME/.composer/cache
before_script:
- composer install
script:
- vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
deploy:
provider: script
script: >-
curl -s -X POST
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Travis-API-Version: 3"
-H "Authorization: token ${TRAVIS_TOKEN}"
-d '{"request": {"message": "Deploy transport.opendata.ch", "branch": "master", "config": {"deploy": {"provider": "script", "skip_cleanup": "true", "script": "ansible-playbook deploy-transport.yml"}}}}'
https://api.travis-ci.org/repo/OpendataCH%2Fplaybook/requests
on:
branch: master
php: 7.0