aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-06-15 19:46:46 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-17 16:57:30 +0800
commit35998179f05b6c65250ef2dcfd8f83e49d2280a8 (patch)
tree94ebee2aa393f42c6812fb8c5ccf649328508848
parent4066b221005f7a8d12dab4e21c1ef5b8ac284b43 (diff)
downloadgo-tangerine-35998179f05b6c65250ef2dcfd8f83e49d2280a8.tar
go-tangerine-35998179f05b6c65250ef2dcfd8f83e49d2280a8.tar.gz
go-tangerine-35998179f05b6c65250ef2dcfd8f83e49d2280a8.tar.bz2
go-tangerine-35998179f05b6c65250ef2dcfd8f83e49d2280a8.tar.lz
go-tangerine-35998179f05b6c65250ef2dcfd8f83e49d2280a8.tar.xz
go-tangerine-35998179f05b6c65250ef2dcfd8f83e49d2280a8.tar.zst
go-tangerine-35998179f05b6c65250ef2dcfd8f83e49d2280a8.zip
ci: add gitlab CI
-rw-r--r--.gitlab-ci.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..1c026c932
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,39 @@
+image: "registry.gitlab.com/byzantine-lab/go-tangerine/ci-testbed:latest"
+
+before_script:
+ - mkdir -p /go/src/github.com/byzantine-lab
+ - ln -s /builds/byzantine-lab/go-tangerine /go/src/github.com/byzantine-lab
+ - cd /go/src/github.com/byzantine-lab/go-tangerine
+
+stages:
+ - lint
+ - test
+
+lint:
+ stage: lint
+ tags:
+ - golang
+ script:
+ - go run build/ci.go lint
+
+test:
+ stage: test
+ tags:
+ - golang
+ script:
+ - make libbls
+ - go run build/ci.go install
+ - go run build/ci.go test -coverage
+
+smoke:
+ stage: test
+ tags:
+ - golang
+ script:
+ - ./build/setup_recovery_env.sh
+ - make gtan
+ - ./test/run_test.sh --smoke-test
+ - ./build/fullnode-test.sh
+ - pkill -15 -f gtan
+ - ./test/run_test.sh --continue --smoke-test
+ - ./build/recovery-test.sh