forked from ory/hydra-consent-app-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (24 loc) · 810 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
sudo: required
language: go
go_import_path: github.com/ory/hydra-consent-app-go
go:
- 1.9
install:
- curl -sL https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- go get github.com/golang/lint/golint
- dep ensure
- go get -d github.com/ory/hydra
- (cd ../../ory/hydra; dep ensure)
- go install github.com/ory/hydra
- go install .
script:
- go vet ./...
- golint -set_exit_status $(go list ./...)
- export FORCE_ROOT_CLIENT_CREDENTIALS=demo:demo
- export CONSENT_URL=http://localhost:4445/consent
- export DATABASE_URL=memory
- hydra host --dangerous-force-http &
- while ! echo exit | nc localhost 4444; do sleep 1; done
- hydra-consent-app-go &
- while ! echo exit | nc localhost 3000; do sleep 1; done