Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmlm committed Dec 31, 2020
1 parent e23840e commit 2dcc68d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ job_test:
stage: test
script:
- make test
- export PATH=$PATH:~/.cargo/bin
- cargo kcov --all
- COVERAGE=$(grep -Po '(?<="covered":")\d+(?:\.\d+)?(?=")' target/cov/index.js)
# Tips: use '^Coverage:\s+(\d+(?:\.\d+)?)' on gitlab to capture the result
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lint: githook
cd src/server && $(CARGO) clippy --no-default-features --features="cow nft"
cd src/proxy && $(CARGO) clippy --features="testmock"

test: test_debug test_release
test: test_debug

test_debug: stop
$(CARGO) test -- --test-threads=1 --nocapture
Expand Down
12 changes: 12 additions & 0 deletions documents/gitlab-runner.config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
concurrent = 1
check_interval = 0

[session_server]
session_timeout = 1800

[[runners]]
name = "YourHostName"
url = "https://gitlab.com/"
token = "YourGitLabToken"
executor = "shell"
cache_dir = "/home/gitlab-runner/build-cache"

0 comments on commit 2dcc68d

Please sign in to comment.