-
Notifications
You must be signed in to change notification settings - Fork 683
/
Copy path.gitlab-ci.yml
60 lines (54 loc) · 1.29 KB
/
.gitlab-ci.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
stages:
- test
variables:
CACHE_ROOT: "/opt/nearcore"
.setup_cache: &setup_cache
mkdir -p "${CACHE_ROOT}/target" &&
ln -s "${CACHE_ROOT}/target" "${CI_PROJECT_DIR}/target"
# Test all but expensive integration tests.
test_cargo:
stage: test
tags:
- shell
before_script:
- *setup_cache
script:
- rustc --version && cargo --version
- cargo check --all --tests --benches --all-features
- cargo test --all --verbose
# Regression tests.
test_regression:
stage: test
before_script:
- *setup_cache
script:
- rustc --version && cargo --version
- ./scripts/build_wasm.sh
- cargo test --package nearcore --test test_tps_regression test --features "regression_tests,fake_crypto"
tags:
- shell
- regression_tests
only:
- schedules
# A set of expensive tests.
test_cases_testnet_rpc:
stage: test
before_script:
- *setup_cache
script:
- rustc --version && cargo --version
- ./scripts/build_wasm.sh
- cargo test --package nearcore --test test_cases_testnet_rpc test --features "expensive_tests"
tags:
- shell
- expensive_tests
only:
- schedules
test_nearlib:
stage: test
tags:
- shell
before_script:
- *setup_cache
script:
- ./scripts/test_nearlib.sh