forked from openl10n/openl10n-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (24 loc) · 788 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
27
28
29
30
31
language: node_js
node_js:
- '0.10'
before_install:
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update -qq
- sudo apt-get install -qq google-chrome-stable
#- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- cp src/public/config.example.js src/public/config.js
- npm install
- npm run webdriver-update
- npm run build
before_script:
- npm run webdriver-start > /tmp/webdriver_output.txt 2>&1 &
- npm start 2>&1 &
- sleep 5 # give server time to start
script:
- gulp test
after_failure:
- cat /tmp/webdriver_output.txt