Skip to content

Commit ef3da5d

Browse files
committed
add travis-ci
1 parent ca60fc2 commit ef3da5d

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: go
2+
3+
go:
4+
- master
5+
6+
# whitelist
7+
branches:
8+
only:
9+
- master
10+
- stable
11+
12+
script:
13+
- go get -t -v ./...
14+
- go vet ./...
15+
- bash ./gotest.sh
16+
17+
after_success:
18+
- bash <(curl -s https://codecov.io/bash)

gotest.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
echo "" > coverage.txt
5+
6+
for d in $(go list ./Algorithms/... | grep -v vendor); do
7+
echo $d
8+
go test -coverprofile=profile.out -covermode=atomic $d
9+
if [ -f profile.out ]; then
10+
cat profile.out >> coverage.txt
11+
rm profile.out
12+
fi
13+
done

0 commit comments

Comments
 (0)