A .builds/beta.yml => .builds/beta.yml +16 -0
@@ 0,0 1,16 @@
+image: alpine/latest
+package:
+ - alpine-sdk
+ - curl
+sources:
+ - https://git.sr.ht/~janbaudisch/euler-rs
+tasks:
+ - setup: curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain beta
+ - build: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo build --verbose --all
+ - test: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo test --verbose --all
A .builds/lint.yml => .builds/lint.yml +20 -0
@@ 0,0 1,20 @@
+image: alpine/latest
+package:
+ - alpine-sdk
+ - curl
+sources:
+ - https://git.sr.ht/~janbaudisch/euler-rs
+tasks:
+ - setup: |
+ curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
+ . $HOME/.cargo/env
+ rustup component add rustfmt
+ rustup component add clippy
+ - format: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo fmt --all -- --check
+ - lint: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo clippy --all -- --deny clippy::all
A .builds/nightly.yml => .builds/nightly.yml +16 -0
@@ 0,0 1,16 @@
+image: alpine/latest
+package:
+ - alpine-sdk
+ - curl
+sources:
+ - https://git.sr.ht/~janbaudisch/euler-rs
+tasks:
+ - setup: curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
+ - build: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo build --verbose --all
+ - test: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo test --verbose --all
A .builds/stable.yml => .builds/stable.yml +16 -0
@@ 0,0 1,16 @@
+image: alpine/latest
+package:
+ - alpine-sdk
+ - curl
+sources:
+ - https://git.sr.ht/~janbaudisch/euler-rs
+tasks:
+ - setup: curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
+ - build: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo build --verbose --all
+ - test: |
+ . $HOME/.cargo/env
+ cd euler-rs
+ cargo test --verbose --all
D .travis.yml => .travis.yml +0 -22
@@ 1,22 0,0 @@
-language: rust
-
-rust:
- - stable
- - beta
- - nightly
-
-jobs:
- include:
- - stage: lint
- rust: stable
- install:
- - rustup component add clippy
- script:
- - cargo clippy --all -- --deny clippy::all
-
- - stage: format
- rust: nightly
- install:
- - rustup component add rustfmt
- script:
- - cargo fmt --all -- --check
M README.md => README.md +2 -2
@@ 4,6 4,6 @@
> My implementation of [Project Euler][project-euler-url] in Rust.
-[build-img]: https://travis-ci.com/janbaudisch/euler-rs.svg?branch=master
-[build-url]: https://travis-ci.com/janbaudisch/euler-rs
+[build-img]: https://builds.sr.ht/~janbaudisch/euler-rs.svg
+[build-url]: https://builds.sr.ht/~janbaudisch/euler-rs
[project-euler-url]: https://projecteuler.net