1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Change to run only master branch

This commit is contained in:
asmsuechan
2017-04-25 11:39:49 -07:00
parent 098153b6ba
commit 28bc331318
2 changed files with 10 additions and 9 deletions

View File

@@ -5,15 +5,7 @@ os:
node_js: node_js:
- 'stable' - 'stable'
- 'lts/*' - 'lts/*'
before_script:
- 'npm install grunt-cli -g'
- 'export DISPLAY=:99.0'
- 'if [ ${TRAVIS_OS_NAME} = "linux" ]; then sh -e /etc/init.d/xvfb start; fi'
- 'sleep 3'
script: script:
- 'npm run lint' - 'npm run lint'
- 'npm run test' - 'npm run test'
- 'if [ ${TRAVIS_NODE_VERSION} = "stable" ]; then - 'if [[ ${TRAVIS_BRAHCN} = "master" && ${TRAVIS_NODE_VERSION} = "stable" ]]; then ./script/e2e-runner.sh; fi'
grunt pre-build;
npm run test:e2e;
fi'

9
script/e2e-runner.sh Executable file
View File

@@ -0,0 +1,9 @@
if [[ ${TRAVIS_OS_NAME} = "linux" ]]; then
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start;
sleep 3
fi
npm install grunt-cli -g
grunt pre-build
npm run test:e2e