forked from CovenantSQL/CovenantSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
43 lines (39 loc) · 1.51 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
43 lines (39 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
image: covenantsql/build
variables:
REVIEWDOG_VERSION: 0.9.11
REVIEWDOG_GITLAB_API_TOKEN: $REVIEWDOG_TOKEN
CODECOV_TOKEN: $CODECOV_TOKEN
UNITTESTTAGS: linux sqlite_omit_load_extension
before_script:
# Setup dependency management tool
# - curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
# - chmod +x $GOPATH/bin/dep
# - go get github.com/mattn/goveralls
# - go get github.com/haya14busa/goverage
# - go get github.com/golang/lint/golint
# - go get github.com/haya14busa/reviewdog/cmd/reviewdog
# - go get github.com/wadey/gocovmerge
- mkdir -p $GOPATH/src/github.com/CovenantSQL
- cp -r /builds/thunderdb/CovenantSQL $GOPATH/src/github.com/CovenantSQL/
- cd $GOPATH/src/github.com/CovenantSQL/CovenantSQL
# - dep ensure
- mkdir -p ~/bin/ && export PATH="~/bin/:$PATH"
- ulimit -n 8192
# - curl -fSL https://github.com/haya14busa/reviewdog/releases/download/$REVIEWDOG_VERSION/reviewdog_linux_amd64 -o ~/bin/reviewdog && chmod +x ~/bin/reviewdog
test-my-project:
stage: test
script:
- ./alltest.sh
compatibility-testnet:
stage: test
script:
- set -o errexit
- set -o pipefail
- commit=$(git rev-parse --short HEAD)
- branch=$(git branch -rv |grep $commit | awk '{print $1}')
- if [[ $branch =~ "/beta_" ]]; then exit 0; fi
- make clean
- make -j8 client
- go test -tags "$UNITTESTTAGS" -bench=^BenchmarkTestnetMiner2$ -benchtime=5s -run ^$ ./cmd/cql-minerd/
- set -x
- ./test/testnet_client/run.sh