forked from serge1peshcoff/selenium-go-conditions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
34 lines (27 loc) · 755 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
34
language: go
go:
- 1.8.x
sudo: required
env:
global:
CC_TEST_REPORTER_ID: 759ed0fd567703c9e92d2a394847bf518a79976d059644350cb53c84423158ab
addons:
firefox: latest
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
install:
- testing/setup.sh
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- go get ./...
- go get github.com/axw/gocov
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- go test -v -coverprofile=c.out
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT