~janbaudisch/aoc-2018

5aad3db9a211e7a51226d258102484967ebd525e — Jan Baudisch 4 years ago 162a2e2
move to sourcehut
6 files changed, 70 insertions(+), 24 deletions(-)

A .builds/beta.yml
A .builds/lint.yml
A .builds/nightly.yml
A .builds/stable.yml
D .travis.yml
M README.md
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/aoc-2018
tasks:
  - setup: curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain beta
  - build: |
      . $HOME/.cargo/env
      cd aoc-2018
      cargo build --verbose --all
  - test: |
      . $HOME/.cargo/env
      cd aoc-2018
      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/aoc-2018
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 aoc-2018
      cargo fmt --all -- --check
  - lint: |
      . $HOME/.cargo/env
      cd aoc-2018
      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/aoc-2018
tasks:
  - setup: curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
  - build: |
      . $HOME/.cargo/env
      cd aoc-2018
      cargo build --verbose --all
  - test: |
      . $HOME/.cargo/env
      cd aoc-2018
      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/aoc-2018
tasks:
  - setup: curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
  - build: |
      . $HOME/.cargo/env
      cd aoc-2018
      cargo build --verbose --all
  - test: |
      . $HOME/.cargo/env
      cd aoc-2018
      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 || cargo install --git https://github.com/rust-lang/rustfmt.git --force --bin rustfmt
      script:
        - cargo fmt --all -- --check

M README.md => README.md +2 -2
@@ 4,6 4,6 @@

> My Rust implementation of [Advent of Code 2018][aoc-url].

[build-img]: https://travis-ci.com/janbaudisch/aoc-2018.svg?branch=master
[build-url]: https://travis-ci.com/janbaudisch/aoc-2018
[build-img]: https://builds.sr.ht/~janbaudisch/aoc-2018.svg
[build-url]: https://builds.sr.ht/~janbaudisch/aoc-2018
[aoc-url]: https://adventofcode.com/2018