-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
34 lines (34 loc) · 1.09 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
dist: bionic
language: go
go:
- 1.13.x
env:
- GO111MODULE=off
services:
- docker
addons:
apt:
chrome: stable
before_install:
- go get -d -t
- mkdir -p $GOPATH/src/github.com/mailru $GOPATH/src/github.com/chromedp
- rm -rf $GOPATH/src/github.com/mailru/easyjson
- git clone https://github.com/kenshaw/easyjson.git $GOPATH/src/github.com/mailru/easyjson
- cd $GOPATH/src/github.com/mailru/easyjson
- go get -d -t
- git clone https://github.com/chromedp/cdproto.git $GOPATH/src/github.com/chromedp/cdproto
- cd $GOPATH/src/github.com/chromedp/cdproto
- go get -d -t
- go install
- git clone https://github.com/chromedp/chromedp.git $GOPATH/src/github.com/chromedp/chromedp
- cd $GOPATH/src/github.com/chromedp/chromedp
- go get -d -t
- go install
script:
- cd $GOPATH/src/github.com/chromedp/cdproto-gen
- go build
- ./cdproto-gen
- cd $GOPATH/src/github.com/chromedp/chromedp
- go test -v
- go test -c
- docker run --rm --volume=$PWD:/chromedp --entrypoint=/chromedp/chromedp.test --workdir=/chromedp --env=PATH=/headless-shell chromedp/headless-shell:latest -test.v