.travis.yml
7.17 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
branches:
only:
- "master"
dist: trusty
sudo: false
language: generic
before_install:
- echo "Installing $ENGINE $ENGINE_VERSION from $ENGINE_ARCHIVE_URL"
- if [[ $ENGINE_ARCHIVE_URL == *.tar.bz2 ]]; then
wget $ENGINE_ARCHIVE_URL --output-document=engine.tar.bz2;
bunzip2 engine.tar.bz2;
elif [[ $ENGINE_ARCHIVE_URL == *.tar.gz ]]; then
wget $ENGINE_ARCHIVE_URL --output-document=engine.tar.gz;
gunzip engine.tar.gz;
elif [[ $ENGINE_ARCHIVE_URL == *.zip ]]; then
wget $ENGINE_ARCHIVE_URL --output-document=engine.zip;
else
echo "Unsupported compression type for url $ENGINE_ARCHIVE_URL";
fi
- if [[ $ENGINE_ARCHIVE_URL == *.tar.* ]]; then
mkdir engine;
tar --strip-components=1 -xvf engine.tar -C engine;
else
export ENGINE_NAME="$CASPERJS_ENGINE-$ENGINE_VERSION";
unzip engine.zip && mv $ENGINE_NAME engine;
fi
- if [[ $CASPERJS_ENGINE == 'phantomjs' ]]; then
export ENGINE_EXECUTABLE="engine/bin/phantomjs";
elif [[ $CASPERJS_ENGINE == 'slimerjs' ]]; then
export ENGINE_EXECUTABLE="engine/slimerjs";
else
echo "Unsupported engine $CASPERJS_ENGINE";
fi
- ls -la $ENGINE_EXECUTABLE && $ENGINE_EXECUTABLE --version;
apt_targets:
- &apt_cs [mono-devel, mono-mcs]
before_script:
- "npm install -g eslint@v1.10.1"
script:
- if [ "$ENGINE_XVFB" == "1" ]; then
xvfb-run -a make "$MAKE_TEST_COMMAND";
else
make "$MAKE_TEST_COMMAND";
fi
env:
global:
- ENGINE_FLAGS="--local-to-remote-url-access=yes --ignore-ssl-errors=yes"
matrix:
include:
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.1" MAKE_TEST_COMMAND="test-dotNET"
ENGINE_ARCHIVE_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-1.9.1-linux-x86_64.tar.bz2"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.1" MAKE_TEST_COMMAND="test"
ENGINE_ARCHIVE_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-1.9.1-linux-x86_64.tar.bz2"
os: linux
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.2" MAKE_TEST_COMMAND="test-dotNET"
ENGINE_ARCHIVE_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-1.9.2-linux-x86_64.tar.bz2"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.2" MAKE_TEST_COMMAND="test"
ENGINE_ARCHIVE_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-1.9.2-linux-x86_64.tar.bz2"
os: linux
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.7" MAKE_TEST_COMMAND="test-dotNET"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/phantomjs-builds/archive/v1.9.7.tar.gz"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.7" MAKE_TEST_COMMAND="test"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/phantomjs-builds/archive/v1.9.7.tar.gz"
os: linux
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.8" MAKE_TEST_COMMAND="test-dotNET"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/phantomjs-builds/archive/v1.9.8.tar.gz"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="1.9.8" MAKE_TEST_COMMAND="test"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/phantomjs-builds/archive/v1.9.8.tar.gz"
os: linux
# NOTE: a pre-compiled official 2.0.0 version for linux is not available yet
# https://bitbucket.org/ariya/phantomjs/downloads
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="2.1.1" MAKE_TEST_COMMAND="test"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/phantomjs-builds/archive/v2.1.1.tar.gz"
os: linux
- env: >
CASPERJS_ENGINE="phantomjs" ENGINE_VERSION="2.1.1" MAKE_TEST_COMMAND="test-dotNET"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/phantomjs-builds/archive/v2.1.1.tar.gz"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.8.4" MAKE_TEST_COMMAND="test-dotNET" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.8.4/slimerjs-0.8.4-linux-x86_64.tar.bz2"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.8.4" MAKE_TEST_COMMAND="test" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.8.4/slimerjs-0.8.4-linux-x86_64.tar.bz2"
os: linux
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.8.5" MAKE_TEST_COMMAND="test-dotNET" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.8.5/slimerjs-0.8.5-linux-x86_64.tar.bz2"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.8.5" MAKE_TEST_COMMAND="test" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.8.5/slimerjs-0.8.5-linux-x86_64.tar.bz2"
os: linux
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.9.5" MAKE_TEST_COMMAND="test-dotNET" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.9.5/slimerjs-0.9.5-linux-x86_64.tar.bz2"
os: linux
addons: {apt: {packages: *apt_cs}}
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.9.5" MAKE_TEST_COMMAND="test" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.9.5/slimerjs-0.9.5-linux-x86_64.tar.bz2"
os: linux
# TODO: slimerjs 0.9.6 coffeescript breaks
# - CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.9.6" MAKE_TEST_COMMAND="test-dotNET" ENGINE_XVFB="1"
# ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.9.6/slimerjs-0.9.6-linux-x86_64.tar.bz2"
# os: linux
# addons: {apt: {packages: *apt_cs}}
# - env: >
# CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.9.6" MAKE_TEST_COMMAND="test" ENGINE_XVFB="1"
# ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.9.6/slimerjs-0.9.6-linux-x86_64.tar.bz2"
# os: linux
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.10.0" MAKE_TEST_COMMAND="test" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.10.0/slimerjs-0.10.0.zip"
os: linux
addons:
firefox: "45.0"
- env: >
CASPERJS_ENGINE="slimerjs" ENGINE_VERSION="0.10.3" MAKE_TEST_COMMAND="test" ENGINE_XVFB="1"
ENGINE_ARCHIVE_URL="https://github.com/casperjs/slimerjs-builds/releases/download/v0.10.3/slimerjs-0.10.3.zip"
os: linux
addons:
firefox: latest-esr
notifications:
irc:
channels:
- "irc.freenode.org#casperjs"
slack: casperjs:jwoh8W8mOfMiBtWOHY9utob0