forked from nette/tracy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 979 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
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
env:
- PHP_BIN=php
- PHP_BIN=php-cgi
script:
- vendor/bin/tester -p $PHP_BIN tests -s
- php temp/code-checker/src/code-checker.php --short-arrays
- if [ $TRAVIS_PHP_VERSION == "7.0" ]; then ./node_modules/.bin/eslint "src/**/*.js"; fi
after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
before_script:
# Install Nette Tester & Code Checker
- travis_retry composer install --no-interaction --prefer-dist
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
# Install new Node.js and Eslint
- >
if [ $TRAVIS_PHP_VERSION == "7.0" ]; then
. $HOME/.nvm/nvm.sh;
nvm install stable;
nvm use stable;
npm install;
npm install eslint;
fi
sudo: false
cache:
directories:
- $HOME/.composer/cache