-
Notifications
You must be signed in to change notification settings - Fork 35
/
.travis.yml
33 lines (27 loc) · 908 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
32
33
# Build config for ebay-java-oauth-client
language: java
dist: trusty
os:
- linux
sudo: required
addons:
chrome: stable
install: # Install ChromeDriver (64bits; replace 64 with 32 for 32bits).
- 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
script:
- whereis google-chrome-stable
- whereis chromedriver
- mvn clean install -DskipTests=true
- mvn test -B
before_script:
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
after_success:
- bash <(curl -s https://codecov.io/bash)