-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 1.32 KB
/
.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
language: node_js
node_js:
- "7"
- "6"
- "stable"
services:
- mysql
env:
- TRAVIS=true
# sudo: false # with ports higher then 1024 no need to use sudo
#install:
# - npm install -g yarn # no need to install yarn https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#Travis-CI-supports-yarn
# - yarn # no need to even execute yarn if there is yarn.lock file
before_script: # https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# alternatively
#- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
#- sleep 3 # give xvfb some time to start
# - npm run server & disown #https://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
# - npm run parser & disown
# - sleep 3 - not necessary, install global libs below instead, it takes time too
# - yarn global add [email protected]
# - yarn global add [email protected]
# - mysql -u root -e "CREATE DATABASE spark /*\!40100 COLLATE 'utf8_general_ci' */;"
# - mysql -u root spark < lib/db/mysql/spark_cache.sql
script:
- npm run test
after_success:
# - cat ./coverage/lcov.info | node node_modules/coveralls/bin/coveralls.js