Commit a8467e5e authored by Christopher Schinnerl's avatar Christopher Schinnerl

add deployment to ci

parent bafd52f7
Pipeline #25876131 failed with stages
in 21 minutes
......@@ -3,6 +3,7 @@ image: golang:1.10
stages:
- lint
- test
- deploy
before_script:
- make dependencies
......@@ -42,5 +43,14 @@ integration-tests:
name: "SiaTesting-$CI_JOB_NAME"
paths:
- $CI_PROJECT_DIR/SiaTesting
script:
script:
- make test-long run=. pkgs="./siatest ./siatest/consensus ./siatest/renter ./siatest/wallet"
deploy:
stage: deploy
artifacts:
name: "Binaries"
paths:
- $CI_PROJECT_DIR/artifacts
script:
- make deploy
......@@ -83,6 +83,10 @@ release:
release-race:
go install -race -tags='netgo' -a -ldflags='-s -w $(ldflags)' $(pkgs)
# deploy builds release binaries for every platform.
deploy:
./deploy.sh
# clean removes all directories that get automatically created during
# development.
clean:
......
#!/bin/bash
mkdir artifacts
for arch in amd64 arm; do
for os in darwin linux windows; do
for pkg in siac siad; do
echo $arch/$os
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
done
done
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment