forked from sebsauvage/Shaarli
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Travis stages to run JS tests separately
- Loading branch information
1 parent
3e35fc1
commit 16d35cf
Showing
2 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,44 @@ | ||
sudo: false | ||
dist: trusty | ||
language: php | ||
|
||
matrix: | ||
include: | ||
- language: php | ||
php: 7.2 | ||
- language: php | ||
php: 7.1 | ||
- language: php | ||
php: 7.0 | ||
- language: php | ||
php: 5.6 | ||
- language: node_js | ||
node_js: 8 | ||
cache: | ||
yarn: true | ||
directories: | ||
- $HOME/.cache/yarn | ||
|
||
install: | ||
- yarn install | ||
|
||
before_script: | ||
- PATH=${PATH//:\.\/node_modules\/\.bin/} | ||
|
||
script: | ||
- yarn run build # Just to be sure that the build isn't broken | ||
- make eslint | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.cache/yarn | ||
php: | ||
- 7.2 | ||
- 7.1 | ||
- 7.0 | ||
- 5.6 | ||
|
||
install: | ||
- yarn install | ||
- composer install --prefer-dist | ||
|
||
before_script: | ||
- PATH=${PATH//:\.\/node_modules\/\.bin/} | ||
|
||
script: | ||
- make clean | ||
- make check_permissions | ||
- make eslint | ||
- make all_tests |