forked from john-doherty/selenium-cucumber-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshippable.yml
executable file
·38 lines (32 loc) · 1.17 KB
/
shippable.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
language: node_js
node_js:
- 6.9.0
addons:
firefox: "57.0"
env:
global:
- CHROME_VERSION=google-chrome-stable
- DBUS_SESSION_BUS_ADDRESS=/dev/null
- NODE_ENV=test
build:
pre_ci:
- sudo apt-get update
# - sudo apt-get install curl
# install chrome browser required for selenium tests
# - curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
# - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
# - sudo apt-get update -qqy
# - sudo apt-get -qqy install ${CHROME_VERSION:-google-chrome-stable}
# install ruby required to install cf cli
# - sudo apt-get --assume-yes install ruby
# - sudo gem install bundler
# - curl -O https://s3.amazonaws.com/go-cli/releases/v6.17.1/cf-cli-installer_6.17.1_x86-64.deb
# - dpkg -i cf-cli-installer_6.17.1_x86-64.deb
pre_ci_boot:
options: "--privileged=false --net=bridge"
ci:
- sudo apt-get install xvfb
- export DISPLAY=:99.0
- mkdir -p shippable/buildoutput
- shippable_retry npm install
- shippable_retry xvfb-run --server-args="-ac" node index.js -b firefox -t @search -x 30000