-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
executable file
·49 lines (42 loc) · 875 Bytes
/
.gitlab-ci.yml
File metadata and controls
executable file
·49 lines (42 loc) · 875 Bytes
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
image: rustlang/rust:nightly
.rust_cache: &rust_cache
cache:
paths:
- .cargo/
- target/
before_script:
- apt-get update -qq && apt install -y libsdl2-dev libsdl2-gfx-dev libsdl2-mixer-dev cmake
stages:
- check
- test
- deploy
test:
<<: *rust_cache
script:
- cargo test --verbose --all
check:
<<: *rust_cache
script:
- rustup component add clippy
- rustup component add rustfmt
- cargo fmt --all -- --check
- cargo check --verbose --all
#clippy:
# <<: *rust_cache
# script:
# - rustup component add clippy
# - cargo clippy --all
pages:
image: rust:latest
stage: deploy
only:
- main
script:
- cargo doc --document-private-items --no-deps --workspace
- rm -rf public
- mkdir public
- cp -R target/doc/* public
- cp misc/index.html public
artifacts:
paths:
- public