forked from pop-os/cosmic-text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.sh
executable file
·35 lines (24 loc) · 711 Bytes
/
ci.sh
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
#!/usr/bin/env bash
function build {
cargo build --release "$@"
cargo clippy --no-deps "$@"
}
set -ex
echo Check formatting
cargo fmt --check
echo Build with default features
build
echo Build with only no_std feature
build --no-default-features --features no_std
echo Build with only std feature
build --no-default-features --features std
echo Build with only std and swash features
build --no-default-features --features std,swash
echo Build with only std and syntect features
build --no-default-features --features std,syntect
echo Build with only std and vi features
build --no-default-features --features std,vi
echo Build with all features
build --all-features
echo Run tests
cargo test