-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* huge refactoring (mostly packages reorganization) + vendor updates + improving CI process + better debug message if no payload flag given
- Loading branch information
Showing
282 changed files
with
8,821 additions
and
4,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
# Statically checking Go source for errors and warnings. | ||
gometalinter.v2 --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode -E gocyclo --vendor ./...; | ||
|
||
# Running tests according to current Orbit version. | ||
if [[ "$VERSION" == "snapshot" ]]; then | ||
go test -race --cover --covermode=atomic ./...; | ||
else | ||
echo "" > .ci/coverage.txt; | ||
for d in $(go list ./... | grep -v vendor); do | ||
go test -race -coverprofile=profile.out -covermode=atomic $d; | ||
if [ -f profile.out ]; then | ||
cat profile.out >> .ci/coverage.txt; | ||
rm profile.out; | ||
fi | ||
done | ||
fi | ||
|
||
# Bye! | ||
exit 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
.idea | ||
dist | ||
orbit | ||
.ci/coverage.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
project_name: Orbit | ||
builds: | ||
- main: ./orbit.go | ||
- main: ./main.go | ||
binary: orbit | ||
env: | ||
- CGO_ENABLED=0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
language: go | ||
sudo: required | ||
|
||
go: | ||
- "1.10" | ||
- tip | ||
language: generic | ||
|
||
matrix: | ||
allow_failures: | ||
- go: tip | ||
fast_finish: true | ||
services: | ||
- docker | ||
|
||
install: | ||
- go version | ||
- go env | ||
- go install | ||
- orbit run install | ||
before_install: | ||
- wget -qO- https://github.com/gulien/orbit/releases/download/v3.0.0/orbit_Linux_x86_64.tar.gz | tar xvz -C . | ||
- sudo mv ./orbit /usr/local/bin && chmod +x /usr/local/bin/orbit | ||
|
||
script: | ||
- orbit run lint | ||
- ./codecov.sh | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
notifications: | ||
email: false | ||
- orbit run ci -p "Version,${TRAVIS_BRANCH}" | ||
# Uploads coverage. | ||
- bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM golang:1.10-stretch | ||
|
||
WORKDIR /go/src/github.com/gulien/orbit | ||
|
||
# Installs lint dependencies. | ||
RUN go get -u gopkg.in/alecthomas/gometalinter.v2 &&\ | ||
gometalinter.v2 --install | ||
|
||
# Installs dep for our tests. | ||
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
ENV SHELL="/bin/sh" | ||
|
||
# Copies our Go source. | ||
COPY . . | ||
|
||
# Installs project dependencies. | ||
RUN go get -d -v ./... | ||
|
||
ENTRYPOINT [".ci/docker-entrypoint.sh"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.