Skip to content

Commit 732533f

Browse files
authored
Add sourcehut builds
1 parent c47cdf9 commit 732533f

File tree

3 files changed

+35
-24
lines changed

3 files changed

+35
-24
lines changed

.builds/freebsd.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
image: freebsd/latest
2+
packages:
3+
- lang/python3
4+
- x11/libxcb
5+
sources:
6+
- https://github.com/alacritty/copypasta
7+
tasks:
8+
- rustup: |
9+
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
10+
- stable: |
11+
cd copypasta
12+
$HOME/.cargo/bin/cargo +stable build
13+
- 1-41-0: |
14+
$HOME/.cargo/bin/rustup toolchain install --profile minimal 1.41.0
15+
cd copypasta
16+
rm Cargo.lock
17+
$HOME/.cargo/bin/cargo +1.41.0 build

.builds/rustfmt.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
image: archlinux
2+
sources:
3+
- https://github.com/alacritty/copypasta
4+
tasks:
5+
- rustup: |
6+
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain none
7+
$HOME/.cargo/bin/rustup toolchain install nightly -c rustfmt
8+
- rustfmt: |
9+
cd copypasta
10+
$HOME/.cargo/bin/cargo fmt -- --check

.travis.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,15 @@ git:
1111
os:
1212
- linux
1313
- osx
14+
- windows
1415

1516
rust:
1617
- 1.41.0
1718
- stable
18-
- nightly
1919

2020
matrix:
2121
fast_finish: true
2222
include:
23-
- if: tag IS present
24-
os: linux
25-
rust: stable
26-
env: ARCH=i386
2723
- name: "Clippy Linux"
2824
os: linux
2925
env: CLIPPY=true
@@ -35,23 +31,11 @@ matrix:
3531
- name: "Clippy Windows"
3632
os: windows
3733
env: CLIPPY=true
38-
rust: stable-x86_64-pc-windows-msvc
39-
- name: "Rustfmt"
40-
os: linux
41-
env: RUSTFMT=true
42-
rust: nightly
43-
- name: "Windows 1.41.0"
44-
os: windows
45-
rust: 1.41.0-x86_64-pc-windows-msvc
46-
- name: "Windows Stable"
47-
os: windows
48-
rust: stable-x86_64-pc-windows-msvc
49-
- name: "Windows Nightly"
50-
os: windows
51-
rust: nightly-x86_64-pc-windows-msvc
52-
allow_failures:
53-
- rust: nightly
54-
- rust: nightly-x86_64-pc-windows-msvc
34+
rust: stable
35+
36+
install:
37+
- if [ "$CLIPPY" == "true" ]; then rustup component add clippy; fi
5538

56-
install: ci/install.sh
57-
script: ci/script.sh
39+
script:
40+
- if [ "$CLIPPY" == "true" ]; then cargo clippy; fi
41+
- if [ "$CLIPPY" != "true" ]; then cargo test; fi

0 commit comments

Comments
 (0)