2020-11-06 18:52:56 -05:00
|
|
|
image: archlinux
|
|
|
|
|
|
|
|
packages:
|
|
|
|
- pkg-config
|
|
|
|
- cmake
|
|
|
|
- make
|
|
|
|
- freetype2
|
|
|
|
- fontconfig
|
|
|
|
- libxcb
|
2021-07-08 16:35:58 -04:00
|
|
|
- libxkbcommon
|
2023-09-07 07:23:08 -04:00
|
|
|
- scdoc
|
2020-11-06 18:52:56 -05:00
|
|
|
|
|
|
|
sources:
|
|
|
|
- https://github.com/alacritty/alacritty
|
|
|
|
|
|
|
|
environment:
|
|
|
|
PATH: /home/build/.cargo/bin:/usr/bin/
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- rustup: |
|
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
|
|
|
|
- rustfmt: |
|
|
|
|
cd alacritty
|
|
|
|
rustup toolchain install nightly -c rustfmt
|
|
|
|
cargo +nightly fmt -- --check
|
2023-09-07 07:23:08 -04:00
|
|
|
- man-pages: |
|
|
|
|
cd alacritty
|
|
|
|
cat extra/man/alacritty.1.scd | scdoc > /dev/null
|
|
|
|
cat extra/man/alacritty-msg.1.scd | scdoc > /dev/null
|
|
|
|
cat extra/man/alacritty.5.scd | scdoc > /dev/null
|
|
|
|
cat extra/man/alacritty-bindings.5.scd | scdoc > /dev/null
|
|
|
|
- test: |
|
|
|
|
cd alacritty
|
|
|
|
cargo test
|
2021-02-27 10:06:22 -05:00
|
|
|
- oldstable: |
|
|
|
|
cd alacritty
|
2024-02-12 15:01:20 -05:00
|
|
|
oldstable=$(cat alacritty/Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
|
|
|
|
rustup toolchain install --profile minimal $oldstable
|
|
|
|
rustup default $oldstable
|
2021-02-27 10:06:22 -05:00
|
|
|
cargo test
|
2020-11-06 18:52:56 -05:00
|
|
|
- clippy: |
|
|
|
|
cd alacritty
|
|
|
|
rustup component add clippy
|
2020-11-10 10:47:49 -05:00
|
|
|
cargo clippy --all-targets
|
2020-11-06 18:52:56 -05:00
|
|
|
- feature-wayland: |
|
|
|
|
cd alacritty/alacritty
|
2022-02-09 11:25:36 -05:00
|
|
|
RUSTFLAGS="-D warnings" cargo test --no-default-features --features=wayland
|
2020-11-06 18:52:56 -05:00
|
|
|
- feature-x11: |
|
|
|
|
cd alacritty/alacritty
|
2022-02-09 11:25:36 -05:00
|
|
|
RUSTFLAGS="-D warnings" cargo test --no-default-features --features=x11
|