From 35998179f05b6c65250ef2dcfd8f83e49d2280a8 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sat, 15 Jun 2019 19:46:46 +0800 Subject: ci: add gitlab CI --- .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') 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 -- cgit