From be18bed2dd1300f6f35703b60055ade0bfb81de9 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 29 Oct 2019 10:18:09 -0700 Subject: [PATCH] Migrate to GitHub Actions. --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 32 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..7818dd17a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: CI +on: [push, pull_request] + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Update rustup + run: rustup self update + - name: Install Rust + run: | + rustup set profile minimal + rustup toolchain install nightly -c rust-docs + rustup default nightly + - name: Install mdbook + run: | + mkdir bin + curl -sSL https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.4/mdbook-v0.3.4-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin + echo "##[add-path]$(pwd)/bin" + - name: Report versions + run: | + rustup --version + rustc -Vv + mdbook --version + - name: Run tests + run: mdbook test + - name: Check for unstable features + run: (cd stable-check && cargo run -- ../src) + - name: Check for broken links + run: tests/linkcheck.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 73304507e..000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: shell - -before_install: - - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal -c rust-docs - - export PATH="$HOME/.cargo/bin:$PATH" - -install: - - travis_retry curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.1/mdbook-v0.3.1-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin - -script: - - export PATH=$PATH:/home/travis/.cargo/bin && mdbook test - - (cd stable-check && cargo run -- ../src) - - tests/linkcheck.sh