-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
76 lines (68 loc) · 1.6 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
stages:
- Build
- Doc
default:
tags:
- circe
# Cache the rustup toolchain so that we don't
# have to download it every time
.cache_toolchain: &cache_toolchain
cache:
key: $CI_JOB_NAME
paths:
- /usr/share/rust/.rustup
rust-latest:
stage: Build
image: $CI_REGISTRY/ch/sormanni/frag-db/sprintx:ci
script:
- cargo build --verbose
- cargo test --verbose
rust-latest-release:
stage: Build
image: $CI_REGISTRY/ch/sormanni/frag-db/sprintx:ci
script:
- cargo build --release --verbose
- cargo test --release --verbose
only:
- main
- dev
rust-nightly:
<<: *cache_toolchain
stage: Build
image: $CI_REGISTRY/ch/sormanni/frag-db/sprintx:ci
script:
- rustup toolchain install nightly
- rustup default nightly
- cargo build --verbose
- cargo test --verbose
only:
- main
- dev
rust-beta:
<<: *cache_toolchain
stage: Build
image: $CI_REGISTRY/ch/sormanni/frag-db/sprintx:ci
script:
- rustup toolchain install beta
- rustup default beta
- cargo build --verbose
- cargo test --verbose
only:
- main
- dev
# When this is working, the above doc job should be removed
# also, the job should only be run on the main branch
pages:
image: $CI_REGISTRY/ch/sormanni/frag-db/sprintx:ci
stage: Doc
script:
- cargo doc --no-deps --all-features --document-private-items
- mv target/doc public
- echo "<meta http-equiv=refresh content=0;url=freesasa_rs/index.html>" > public/index.html
artifacts:
paths:
- public
only:
- main