Skip to content

Commit f9666b2

Browse files
committed
Add a new travis.yml file.
Here we go with the experiments!
1 parent 4fef311 commit f9666b2

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
language: php
2+
3+
sudo: false
4+
5+
php:
6+
- 5.6
7+
8+
# Environment Variables to set
9+
env:
10+
global:
11+
# Contains a $GITHUB_TOKEN env var for use with composer to avoid API limits.
12+
- secure: "JPIIdecDmF2AsgH3b5QWYzr2TunB4tpIBl0/64EGsWZ+5A85Co3NN+eSshgWI5vOjaaJji/S2rKwMRvV9h/YceTL/UH5D2xd/HobRpHAaJSyjp5cplQawokzR/+PrikjmbwTZdeiIaHpUMCqbQvV2+Jq+Vx5vD28+hya1yTdQsk="
13+
14+
15+
# Cache the composer directories, only allowed if using the container based setup
16+
# which depends on setting sudo to false
17+
cache:
18+
directories:
19+
- $HOME/.composer/cache
20+
21+
# Branches to be built or not
22+
branches:
23+
# Blacklist these branches
24+
except:
25+
- gh-pages
26+
27+
before_install:
28+
- composer self-update
29+
30+
install:
31+
- composer config -g github-oauth.github.com $GITHUB_TOKEN
32+
- composer install --no-interaction
33+
34+
before_script:
35+
- phpenv rehash
36+
- vendor/bin/phpcs --config-set installed_paths vendor/loadsys/loadsys_codesniffer,vendor/cakephp/cakephp-codesniffer
37+
38+
script:
39+
- vendor/bin/phpcs -p --extensions=php --standard=Loadsys src tests
40+
- vendor/bin/phpunit --coverage-xml=tmp/clover.xml
41+
42+
notifications:
43+
email: false

0 commit comments

Comments
 (0)