forked from bestiejs/platform.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (57 loc) · 1.51 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: node_js
sudo: false
node_js:
- 8
cache:
directories:
- ~/.npm
- travis_phantomjs
- travis_ringojs
env:
global:
- BIN=node
matrix:
-
- BIN=phantomjs
- BIN=ringo
matrix:
include:
- node_js: 4
env:
- node_js: 6
env:
git:
depth: 10
branches:
only:
- master
before_install:
# Upgrade PhantomJS.
- |
export PHANTOMJS_VERSION=2.1.1
export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH
if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then
rm -rf $PWD/travis_phantomjs
mkdir -p $PWD/travis_phantomjs
wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
tar -xvf phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs
fi
phantomjs -v
# Install RingoJS.
- |
export RINGOJS_VERSION=1.2.1
export PATH=$PWD/travis_ringojs/ringojs-$RINGOJS_VERSION/bin:$PATH
if [ ! -f "$(which ringo)" ] || [ $(ringo --version | grep -Eo '[0-9.]+') != $RINGOJS_VERSION ]; then
rm -rf $PWD/travis_ringojs
mkdir -p $PWD/travis_ringojs
wget https://github.com/ringo/ringojs/releases/download/v$RINGOJS_VERSION/ringojs-$RINGOJS_VERSION.tar.gz
tar -xvf ringojs-$RINGOJS_VERSION.tar.gz -C $PWD/travis_ringojs
fi
ringo -v
- nvm use $TRAVIS_NODE_VERSION
- npm i -g npm@^5
install:
- npm i
script:
- cd test
- $BIN ./test.js