Skip to content

Commit 56cb9b0

Browse files
yookoalakazarena
authored andcommitted
Add travis testing config
1 parent 7a231ad commit 56cb9b0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: go
2+
3+
go:
4+
- 1.9
5+
- tip
6+
7+
install:
8+
- |
9+
# fix path issue in forks
10+
if [ "$TRAVIS_REPO_SLUG" != "piprate/json-gold" ]; then
11+
echo "Need to fix path for forks"
12+
cd $HOME/gopath/src/github.com
13+
mv $(dirname $TRAVIS_REPO_SLUG) piprate
14+
cd piprate/json-gold
15+
export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/piprate/json-gold
16+
pwd
17+
fi
18+
- go get -v -t ./...
19+
20+
script:
21+
- go test -v -race -cover ./...

0 commit comments

Comments
 (0)