-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
42 lines (35 loc) · 1 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
dist: trusty
language: java
#addons:
# chrome: stable
addons:
# apt:
# sources:
# - google-chrome
# packages:
# - google-chrome-stable
chrome: stable
env:
global:
- DRIVER=/usr/local/bin/chromedriver
- CHROME_BIN=/usr/bin/google-chrome
- DISPLAY=':99.0'
before_install:
- # start your web application and listen on `localhost`
- wget -N http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver
/usr/local/bin/chromedriver
- sleep 3
# - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
before_script:
- sh -e /etc/init.d/xvfb start
script:
# - whereis google-chrome-stable
# - whereis chromedriver
# - "ls -lhisa /usr/bin/"
# - "sudo find / -name chromedriver*"
- "mvn test"