-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (39 loc) · 1.32 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
43
44
45
46
47
48
49
language: go
go:
- 1.1
- 1.2
- 1.3
- tip
env:
global:
- secure: "BFFoJKnSYjja7BJ3KD86CxCw/BXgP/5bs2RTiObguYSoE8044cMsYafIzz2tN4sUhHHNGoz83F6cjMl3knNRcNK5YL/05YzKTBdXuSlVkCwwWeGqwQghHL2l3UpG5TAn9yIwoZXB9mqRN6vymoqsXhdC7yK5n9QroQDeJAws0Ao="
matrix:
- PUBLISH=false
matrix:
include:
- go: 1.4
env:
- PUBLISH=true
before_install:
- gem install cucumber
- gem install rspec
install:
- go get -v ./...
- go get -v github.com/stretchr/testify
- if [ "$PUBLISH" == "true" ]; then ( go get -v github.com/mattn/goveralls ); fi
- if [ "$PUBLISH" == "true" ]; then ( go get -v golang.org/x/tools/cmd/cover ); fi
script:
- ( go run features/wire_server.go & ) ; sleep 1 ; cucumber -p done -p html ; mv output.html features.html
- ( go run features/wire_server.go & ) ; sleep 1 ; cucumber -p wip -p html ; mv output.html wip.html
- if [ "$PUBLISH" == "false" ]; then ( go test -v ); fi
- if [ "$PUBLISH" == "true" ]; then ( go test -v -covermode=count -coverprofile=gourd.cov ); fi
- if [ "$PUBLISH" == "true" ]; then ( PATH="$PATH:~/gopath/bin" goveralls -coverprofile=gourd.cov -service=travis-ci ); fi
after_success:
- if [ "$PUBLISH" == "true" ]; then ( ./update-gh-pages.sh ); fi
branches:
except:
- gh-pages
notifications:
email:
on_success: never
on_failure: always