-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
19 lines (16 loc) · 978 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: node_js
node_js:
- 4
env:
- PHANTOMJS1=1.9.7
- PHANTOMJS2=2.0.0
- PHANTOMJS2=2.1.1 PHANTOMJS21=1
before_script:
- "if [ -n \"$PHANTOMJS1\" ]; then wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 -O - | tar -xj; fi"
- "if [ -n \"$PHANTOMJS1\" ]; then mv phantomjs-1.9.7-linux-x86_64/bin/phantomjs .; fi"
- "if [ -n \"$PHANTOMJS2\" ]; then wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O - | tar -xj; fi"
- "if [ -n \"$PHANTOMJS21\" ]; then wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS2-linux-x86_64.tar.bz2 -O - | tar -xj; fi"
- "if [ -n \"$PHANTOMJS21\" ]; then mv phantomjs-$PHANTOMJS2-linux-x86_64/bin/phantomjs .; fi"
- "if [ -n \"$SLIMERJS\" ]; then sh -e /etc/init.d/xvfb start; fi"
- "if [ -n \"$SLIMERJS\" ]; then git clone --depth=1 https://github.com/laurentj/slimerjs.git tmp; mv ./tmp/src ./slimerjs; fi"
script: npm test