-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* run builds on our own AWS instances * use codecov.io for code coverage * travis-ci jobs still enabled for now
- Loading branch information
Showing
5 changed files
with
106 additions
and
2 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,35 @@ | ||
env: | ||
AKASH_GO_PACKAGE: "github.com/ovrclk/akash" | ||
TEST_DELAY_THREAD_START: 10ms | ||
steps: | ||
|
||
- name: ":ferris_wheel: tests" | ||
plugins: | ||
golang#v2.0.0: | ||
version: "1.10" | ||
import: "${AKASH_GO_PACKAGE}" | ||
command: .buildkite/script/test.sh test | ||
|
||
- name: ":popcorn: coverage" | ||
plugins: | ||
golang#v2.0.0: | ||
version: "1.10" | ||
import: "${AKASH_GO_PACKAGE}" | ||
environment: | ||
- CI | ||
- BUILDKITE | ||
- BUILDKITE_BRANCH | ||
- BUILDKITE_BUILD_NUMBER | ||
- BUILDKITE_JOB_ID | ||
- BUILDKITE_BUILD_URL | ||
- BUILDKITE_PROJECT_SLUG | ||
- BUILDKITE_COMMIT | ||
- CODECOV_TOKEN | ||
command: .buildkite/script/test.sh coverage | ||
|
||
- name: ":man-juggling: integration" | ||
plugins: | ||
golang#v2.0.0: | ||
version: "1.10" | ||
import: "${AKASH_GO_PACKAGE}" | ||
command: .buildkite/script/test.sh integration |
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,58 @@ | ||
#!/bin/bash | ||
|
||
do_glide(){ | ||
echo "--- :building_construction: installing glide" | ||
curl https://glide.sh/get | sh | ||
|
||
echo "--- :inbox_tray: installing deps" | ||
make deps-install | ||
} | ||
|
||
do_bins(){ | ||
echo "--- :hammer_and_pick: building binaries" | ||
make bins | ||
} | ||
|
||
do_vet(){ | ||
echo "--- :mag: linting" | ||
make test-vet | ||
} | ||
|
||
do_tests(){ | ||
echo "--- :female-scientist: runnig unit tests" | ||
# make test-full | ||
make test | ||
} | ||
|
||
do_coverage(){ | ||
echo "--- :female-scientist: capturing test coverage" | ||
go test -coverprofile=coverage.txt -covermode=count -coverpkg="./..." ./... | ||
|
||
echo "--- :satellite_antenna: uploading test coverage" | ||
bash <(curl -s https://codecov.io/bash) | ||
} | ||
|
||
do_integration(){ | ||
echo "--- :building_construction: installing integration dependencies" | ||
make integrationdeps-install | ||
|
||
echo "--- :juggling: running integration tests" | ||
make test-integration | ||
} | ||
|
||
case "$1" in | ||
test) | ||
do_glide | ||
do_bins | ||
do_vet | ||
do_tests | ||
;; | ||
coverage) | ||
do_glide | ||
do_coverage | ||
;; | ||
integration) | ||
do_glide | ||
do_integration | ||
;; | ||
esac |
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,6 @@ | ||
--- | ||
name: Akash Build | ||
repository: https://github.com/ovrclk/akash.git | ||
steps: | ||
- name: ":pipeline:" | ||
command: "buildkite-agent pipeline upload" |
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,3 @@ | ||
ignore: | ||
- **/*.pb.go | ||
- **/mocks/.* |
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