mirror of https://github.com/Kylart/KawAnime.git
Added test step to travis
This commit is contained in:
parent
4e0467b23f
commit
39bb42cc19
|
@ -22,6 +22,8 @@ jobs:
|
||||||
name: Mac
|
name: Mac
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
- npm run pack
|
||||||
|
- npm run test
|
||||||
|
|
||||||
-
|
-
|
||||||
os: linux
|
os: linux
|
||||||
|
@ -34,8 +36,14 @@ jobs:
|
||||||
- gcc-5
|
- gcc-5
|
||||||
env: CC=gcc-5 CXX=g++-5
|
env: CC=gcc-5 CXX=g++-5
|
||||||
name: Linux
|
name: Linux
|
||||||
|
before_script:
|
||||||
|
- "export DISPLAY=:99.0"
|
||||||
|
- "sh -e /etc/init.d/xvfb start"
|
||||||
|
- sleep 3 # give xvfb some time to start
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
- npm run pack
|
||||||
|
- npm run test
|
||||||
- "[[ $TRAVIS_BRANCH == master ]] && npm run publish:linux || echo \"Skipped Deploy Step\""
|
- "[[ $TRAVIS_BRANCH == master ]] && npm run publish:linux || echo \"Skipped Deploy Step\""
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
|
Loading…
Reference in New Issue