forked from loadsys/CakePHP-Sitemap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (36 loc) · 1.16 KB
/
.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
41
42
43
44
45
46
47
48
language: php
sudo: false
php:
- 5.6
- 7.0
# Environment Variables to set
env:
global:
# Contains a $GITHUB_TOKEN env var for use with composer to avoid API limits.
- secure: "Wt/bbqQuU3oT/1lKz+Wn1CyEacXsSqUPRhuhDj2mZm7AqRd5d5a8Nu6AU4LDNBFP7IBxywIbPVcgjOwf0OVnlHkdVcFHWWuZrIX2joM+pf6Sv4mSPvbeHj2i3IVnwkwHnMi/m4PR4GzGShbcl5NwXcoWjYZ/ZOoTJoaAyeRU4lE="
# Cache the composer directories, only allowed if using the container based setup
# which depends on setting sudo to false
cache:
directories:
- $HOME/.composer/cache
# Branches to be built or not
branches:
# Blacklist these branches
except:
- gh-pages
before_install:
- composer self-update
- mkdir -p build/logs
install:
- composer config -g github-oauth.github.com $GITHUB_TOKEN
- composer install --no-interaction
before_script:
- phpenv rehash
- vendor/bin/phpcs --config-set installed_paths vendor/loadsys/loadsys_codesniffer,vendor/cakephp/cakephp-codesniffer
script:
- vendor/bin/phpcs -np --extensions=php --standard=Loadsys ./src ./tests
- vendor/bin/phpunit --coverage-clover=build/logs/clover.xml
after_script:
- php vendor/bin/coveralls -v
notifications:
email: false