-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbitbucket-pipelines.yml
40 lines (38 loc) · 1.17 KB
/
bitbucket-pipelines.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
# This is a sample build configuration for Rust.
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: rust:latest
pipelines:
default:
- step:
caches:
- crates
script:
- apt-get update
- apt-get install --no-install-recommends -y libsdl2-dev
- rustc --verbose --version
- cargo update -v
- cargo build -v
- cargo test -v
- step:
name: Nightly
image: rustlang/rust:nightly
caches:
- crates
script:
- apt-get update
- apt-get install --no-install-recommends -y libsdl2-dev
- rustup component add rustfmt-preview --toolchain nightly
- rustc --verbose --version
- cargo update -v
- cargo build -v
- cargo test -v
- cargo +nightly install clippy -v
- cargo clippy --all -v
- cargo fmt -- --version
- cargo fmt --all -- --check
definitions:
caches:
crates: ~/.cargo