Skip to content

Commit 51d4953

Browse files
committed
Remove gitlab ci cache. Remove stage for gitlabci. Split make in different jobs
1 parent 6df0f83 commit 51d4953

1 file changed

Lines changed: 4 additions & 19 deletions

File tree

.gitlab-ci.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ variables:
55
REVIEWDOG_GITLAB_API_TOKEN: $REVIEWDOG_TOKEN
66
CODECOV_TOKEN: $CODECOV_TOKEN
77

8-
stages:
9-
- build
10-
- test
11-
128
before_script:
139
# Setup dependency management tool
1410
# - curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
@@ -26,23 +22,11 @@ before_script:
2622
- ulimit -n 8192
2723
# - curl -fSL https://github.com/haya14busa/reviewdog/releases/download/$REVIEWDOG_VERSION/reviewdog_linux_amd64 -o ~/bin/reviewdog && chmod +x ~/bin/reviewdog
2824

29-
cache:
30-
untracked: true
31-
key: "$CI_COMMIT_REF_SLUG"
32-
paths:
33-
- bin/
34-
35-
build:
36-
stage: build
37-
script:
38-
- make clean
39-
- make use_all_cores
40-
- cp -r $GOPATH/src/github.com/CovenantSQL/CovenantSQL/bin /builds/thunderdb/CovenantSQL/
41-
4225
test-my-project:
4326
stage: test
4427
script:
45-
- cp -r /cache/bin $GOPATH/src/github.com/CovenantSQL/CovenantSQL/
28+
- make clean
29+
- make -j6 bp miner observer
4630
- go test -v -race -failfast -parallel 16 -cpu 16 $(go list ./... | grep -v "/vendor/") -coverprofile cover.out
4731
- gocovmerge cover.out $(find cmd -name "*.cover.out") | grep -F -v '_gen.go' > coverage.txt && rm -f cover.out
4832
- bash <(curl -s https://codecov.io/bash)
@@ -54,6 +38,7 @@ test-my-project:
5438
compatibility-testnet:
5539
stage: test
5640
script:
57-
- cp -r /cache/bin $GOPATH/src/github.com/CovenantSQL/CovenantSQL/
41+
- make clean
42+
- make -j8 client
5843
- go test -bench=^BenchmarkTestnetMiner2$ -benchtime=5s -run ^$ ./cmd/cql-minerd/
5944
- bash test/testnet_client/run.sh

0 commit comments

Comments
 (0)