Skip to content

Commit

Permalink
Add travis yaml (gomodules#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
tahsinrahman authored and tamalsaha committed Mar 15, 2018
1 parent 58a0d1c commit 0401622
Show file tree
Hide file tree
Showing 154 changed files with 29,231 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ _testmain.go
*.prof
.idea/
.vscode/
vendor/
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: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/appscode/go-notify)](https://goreportcard.com/report/github.com/appscode/go-notify)
[![Build Status](https://travis-ci.org/appscode/go-notify.svg?branch=master)](https://travis-ci.org/appscode/go-notify)
[![codecov](https://codecov.io/gh/appscode/go-notify/branch/master/graph/badge.svg)](https://codecov.io/gh/appscode/go-notify)
[![Slack](https://slack.appscode.com/badge.svg)](https://slack.appscode.com)
[![Twitter](https://img.shields.io/twitter/follow/appscodehq.svg?style=social&logo=twitter&label=Follow)](https://twitter.com/intent/follow?screen_name=AppsCodeHQ)

[Website](https://appscode.com)[Slack](https://slack.appscode.com)[Twitter](https://twitter.com/AppsCodeHQ)

Expand Down
13 changes: 13 additions & 0 deletions glide-slow
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# You can execute me through Glide by doing the following:
# - Execute `glide slow`
# - ???
# - Profit

pushd $GOPATH/src/github.com/appscode/go-notify

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

popd
17 changes: 10 additions & 7 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/go-notify"

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
19 changes: 19 additions & 0 deletions vendor/github.com/appscode/envconfig/LICENSE

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

8 changes: 8 additions & 0 deletions vendor/github.com/appscode/envconfig/doc.go

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

7 changes: 7 additions & 0 deletions vendor/github.com/appscode/envconfig/env_os.go

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

7 changes: 7 additions & 0 deletions vendor/github.com/appscode/envconfig/env_syscall.go

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

Loading

0 comments on commit 0401622

Please sign in to comment.