Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Add travis yaml (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
tahsinrahman authored and tamalsaha committed Mar 15, 2018
1 parent b052590 commit 14329b2
Show file tree
Hide file tree
Showing 29 changed files with 2,694 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ dist/
.idea/
**/node_modules/
.vscode/
coverage.txt
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: go
go:
- 1.x
- tip

install: true

script:
- go build ./...
- ./hack/coverage.sh

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 2 additions & 2 deletions glide-slow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# You can execute me through Glide by doing the following:
# - Execute `glide slow`
Expand All @@ -8,6 +8,6 @@
pushd $GOPATH/src/github.com/appscode/swift

glide up -v
glide vc --only-code --no-tests
glide vc --use-lock-file --only-code --no-tests

popd
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions hack/coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -eou pipefail

GOPATH=$(go env GOPATH)
REPO_ROOT="$GOPATH/src/github.com/appscode/swift"

pushd $REPO_ROOT

echo "" > coverage.txt

for d in $(go list ./... | grep -v -e vendor -e test); do
go test -v -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done

popd
8 changes: 4 additions & 4 deletions vendor/github.com/appscode/kutil/meta/encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions vendor/github.com/cpuguy83/go-md2man/md2man.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 14329b2

Please sign in to comment.