-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.travis.yml
31 lines (27 loc) · 1.13 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
language: node_js
node_js:
- "4.1"
sudo: false
env:
APP_SERVER_DIR=app_server
cache:
directories:
- $APP_SERVER_DIR/node_modules
- 'travis_phantomjs'
before_install:
- phantomjs --version
- export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
- phantomjs --version
- if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi
- phantomjs --version
before_script:
- mysql -e 'CREATE DATABASE worldscope_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
- npm install -g grunt-cli
- npm install -g casperjs
script: cd $APP_SERVER_DIR && npm install && npm run linter && npm test
after_success: ./node_modules/.bin/coveralls < ./report/coverage.info
branches:
only:
- master