summaryrefslogtreecommitdiff
path: root/.builds
diff options
context:
space:
mode:
Diffstat (limited to '.builds')
-rw-r--r--.builds/freebsd.yml30
-rw-r--r--.builds/linux.yml40
-rw-r--r--.builds/rustfmt.yml10
3 files changed, 60 insertions, 20 deletions
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
index 10f0333a..ec2e1616 100644
--- a/.builds/freebsd.yml
+++ b/.builds/freebsd.yml
@@ -1,4 +1,5 @@
image: freebsd/latest
+
packages:
- devel/cmake
- devel/pkgconf
@@ -7,21 +8,30 @@ packages:
- x11-fonts/fontconfig
- x11-fonts/dejavu
- x11/libxcb
+
sources:
- https://github.com/alacritty/alacritty
+
+environment:
+ PATH: /home/build/.cargo/bin:/bin:/usr/bin:/usr/local/bin
+
tasks:
- rustup: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
- $HOME/.cargo/bin/rustup toolchain install --profile minimal 1.43.1
- - 1-43-1: |
+ - test: |
cd alacritty
- $HOME/.cargo/bin/cargo +1.43.1 test
- - 1-43-1-wayland: |
+ cargo test
+ - clippy: |
+ cd alacritty
+ rustup component add clippy
+ cargo clippy --all-targets
+ - oldstable: |
+ cd alacritty
+ rustup toolchain install --profile minimal 1.43.1
+ cargo +1.43.1 test
+ - feature-wayland: |
cd alacritty/alacritty
- $HOME/.cargo/bin/cargo +1.43.1 test --no-default-features --features=wayland
- - 1-43-1-x11: |
+ cargo test --no-default-features --features=wayland
+ - feature-x11: |
cd alacritty/alacritty
- $HOME/.cargo/bin/cargo +1.43.1 test --no-default-features --features=x11
- - stable: |
- cd alacritty
- $HOME/.cargo/bin/cargo +stable test
+ cargo test --no-default-features --features=x11
diff --git a/.builds/linux.yml b/.builds/linux.yml
new file mode 100644
index 00000000..90c31836
--- /dev/null
+++ b/.builds/linux.yml
@@ -0,0 +1,40 @@
+image: archlinux
+
+packages:
+ - pkg-config
+ - cmake
+ - make
+ - freetype2
+ - fontconfig
+ - libxcb
+
+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
+ - test: |
+ cd alacritty
+ cargo test
+ - rustfmt: |
+ cd alacritty
+ rustup toolchain install nightly -c rustfmt
+ cargo +nightly fmt -- --check
+ - clippy: |
+ cd alacritty
+ rustup component add clippy
+ cargo clippy --all-targets
+ - oldstable: |
+ cd alacritty
+ rustup toolchain install --profile minimal 1.43.1
+ cargo +1.43.1 test
+ - feature-wayland: |
+ cd alacritty/alacritty
+ cargo +1.43.1 test --no-default-features --features=wayland
+ - feature-x11: |
+ cd alacritty/alacritty
+ cargo +1.43.1 test --no-default-features --features=x11
diff --git a/.builds/rustfmt.yml b/.builds/rustfmt.yml
deleted file mode 100644
index 52836217..00000000
--- a/.builds/rustfmt.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-image: archlinux
-sources:
- - https://github.com/alacritty/alacritty
-tasks:
- - rustup: |
- curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain none
- $HOME/.cargo/bin/rustup toolchain install nightly -c rustfmt
- - rustfmt: |
- cd alacritty
- $HOME/.cargo/bin/cargo fmt -- --check