This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gitlab-migration' into 'master'
Gitlab migration See merge request NebulousLabs/Sia!3167
- Loading branch information
Showing
20 changed files
with
106 additions
and
62 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,60 @@ | ||
image: golang:1.10 | ||
|
||
stages: | ||
- lint | ||
- test | ||
- deploy | ||
|
||
before_script: | ||
- make dependencies | ||
- cp -R $CI_PROJECT_DIR $GOPATH/src/gitlab.com/NebulousLabs/Sia | ||
- cd $GOPATH/src/gitlab.com/NebulousLabs/Sia | ||
|
||
after_script: | ||
- cp -R /tmp/SiaTesting $CI_PROJECT_DIR/SiaTesting | ||
|
||
lint: | ||
stage: lint | ||
script: | ||
- go get -u github.com/alecthomas/gometalinter | ||
- gometalinter --install | ||
- gometalinter --vendor --disable-all --enable=vet --enable=gofmt ./... | ||
|
||
legacy-tests: | ||
stage: test | ||
artifacts: | ||
name: "SiaTesting-$CI_JOB_NAME" | ||
paths: | ||
- $CI_PROJECT_DIR/SiaTesting | ||
script: make test-long pkgs="./node ./node/api ./node/api/server" run=. | ||
|
||
package-tests: | ||
stage: test | ||
artifacts: | ||
name: "SiaTesting-$CI_JOB_NAME" | ||
paths: | ||
- $CI_PROJECT_DIR/SiaTesting | ||
script: | ||
- make test-long run=. pkgs="./build ./cmd/siac ./cmd/siad ./compatibility ./crypto ./encoding ./modules ./modules/consensus ./modules/explorer ./modules/gateway ./modules/host ./modules/host/contractmanager ./modules/renter ./modules/renter/contractor ./modules/renter/hostdb ./modules/renter/hostdb/hosttree ./modules/renter/proto ./modules/miner ./modules/wallet ./modules/transactionpool ./persist ./sync ./types" | ||
|
||
integration-tests: | ||
stage: test | ||
artifacts: | ||
name: "SiaTesting-$CI_JOB_NAME" | ||
paths: | ||
- $CI_PROJECT_DIR/SiaTesting | ||
script: | ||
- make test-long run=. pkgs="./siatest ./siatest/consensus ./siatest/renter ./siatest/wallet" | ||
|
||
deploy: | ||
stage: deploy | ||
only: | ||
refs: | ||
- master | ||
artifacts: | ||
name: "Binaries" | ||
paths: | ||
- $CI_PROJECT_DIR/artifacts | ||
script: | ||
- make deploy | ||
- cp -R ./artifacts $CI_PROJECT_DIR/artifacts |
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
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,24 @@ | ||
#!/bin/bash | ||
|
||
mkdir artifacts | ||
for arch in amd64 arm; do | ||
for os in darwin linux windows; do | ||
for pkg in siac siad; do | ||
if [ "$arch" == "arm" ]; then | ||
if [ "$os" == "windows" ] || [ "$os" == "darwin" ]; then | ||
continue | ||
fi | ||
fi | ||
|
||
bin=$pkg | ||
if [ "$os" == "windows" ]; then | ||
bin=${pkg}.exe | ||
fi | ||
|
||
GOOS=${os} GOARCH=${arch} go build -tags='netgo' -o artifacts/$arch/$os/$bin ./cmd/$pkg | ||
if [ $? -ne 0 ]; then | ||
exit $? | ||
fi | ||
done | ||
done | ||
done |
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.