From 62daee53d743ec8974a5001e9e6a1d4984faa435 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 16 Apr 2024 11:39:33 +0200 Subject: [PATCH] Use GitHub workflows instead of travis --- .github/workflows/ci.yml | 19 +++++++++++++++++++ .travis.yml | 33 --------------------------------- 2 files changed, 19 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..1c8bf5bb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: continuous-integration + +on: + pull_request: + push: + branches: + - master + +permissions: read-all + +jobs: + test: + runs-on: ubuntu-latest + container: + image: rust:1 + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - run: cargo test --workspace diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cf28b58f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -language: rust - -rust: - - stable - - beta - - nightly - -env: - global: - - secure: "BzoIUhSxk27LcMIKXcwXlMPs3RrO1J/XileGsWceU1FP4CyXbigmFdEu1Wcm7doEhPsGFvd5ogUc/yTyPhExpmy7aymkwlA5aaKqhOif/u1aHEhcE0oofPoyFNpkm0GR+U+3ExvMmYzJYVddwIXuIADUcV/Dusv4ZQB2Z/ZMtyU=" - - secure: "zsXkul12GoVz/SGbhZHlP9vQXzfWi0nhPkJSmuoCbmVgvCvfL+xURdI0XUwc3oZbRy9EO+Q6bJFtogOnc5edTRdXNVONweLLhM7fpbNV3YcDcgHC3WBZtupkjXszQ0oRA/3pzGPo2tRxzmuGJkbi1zRJRLHFDljv25Bf4lCHyuY=" - -script: - - cargo test --manifest-path lua52-sys/Cargo.toml - - cargo test --manifest-path hlua/Cargo.toml - #- cargo test --manifest-path rust-hl-lua-modules/Cargo.toml - -after_success: - - | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - cargo doc --manifest-path hlua/Cargo.toml && - sudo pip install ghp-import && - ghp-import hlua/target/doc && - git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages - - | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - cargo publish --manifest-path lua52-sys/Cargo.toml --token ${CRATESIO_TOKEN} - - | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - cargo publish --manifest-path hlua/Cargo.toml --token ${CRATESIO_TOKEN}