forked from opencfp/opencfp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (30 loc) · 937 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
30
31
32
33
34
35
36
37
38
39
40
language: php
sudo: false
php:
- 7.0
- 5.6
- 5.5
env:
- TRAVIS_DB=cfp_travis
# cache composer downloads so installing is quicker
cache:
directories:
- $HOME/.composer/cache
addons:
code_climate:
repo_token: 9deb249b01a414d979959cfd05a4c351b19a5959858653b20276454d4189edc3
before_install:
- composer self-update
- composer validate --no-check-publish
install:
- composer install
before_script:
- sh tools/travis/setup-mail.sh
- mysql -e "CREATE DATABASE $TRAVIS_DB" -uroot
- vendor/bin/phinx --configuration=phinx.yml.dist migrate -e testing
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- vendor/bin/php-cs-fixer fix --verbose
after_script:
- vendor/bin/test-reporter --stdout > codeclimate.json
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"