forked from hiptest/hps-protractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (21 loc) · 824 Bytes
/
.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
sudo: required
dist: trusty
language: node_js
node_js:
- '6.9'
install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
- sudo apt-get update -q
- sudo apt-get install -q google-chrome-stable
- gem install hiptest-publisher
before_script:
- npm install
- hiptest-publisher --config-file=protractor.conf --token=$SECRET_TOKEN --test-run-id=52538 --only=tests
script:
- (npm start > /dev/null &) && (npm run protractor)
after_script:
- hiptest-publisher --config-file=protractor.conf --token=$SECRET_TOKEN --test-run-id=52538 --push="test-reports/*.xml"