From 21835644a0c828813d3401fcd8293de3ff1461cf Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Sun, 14 Jun 2020 02:29:31 +0900 Subject: [PATCH] enable GitHub actions CI for faster test cycle --- .github/workflows/ci.yml | 67 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 13 -------- 2 files changed, 67 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..941d115 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,67 @@ +# TODO: build docs via github-actions + +name: CI +on: + push: + branches: + - master + pull_request: +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.allow-failure }} + strategy: + fail-fast: false # don't stop CI even when one of them fails + matrix: + version: + - '1.4' + os: + - ubuntu-latest + - macOS-latest + # - windows-latest # TODO: test on Windows + arch: + - x64 + - x86 + allow-failure: [false] + include: + # this is so verbose... any other way to simplify this ? + - version: 'nightly' + os: ubuntu-latest + arch: x64 + allow-failure: true + - version: 'nightly' + os: ubuntu-latest + arch: x86 + allow-failure: true + - version: 'nightly' + os: macOS-latest + arch: x64 + allow-failure: true + # - version: 'nightly' + # os: windows-latest + # arch: x64 + # allow-failure: true + # - version: 'nightly' + # os: windows-latest + # arch: x86 + # allow-failure: true + exclude: + - os: macOS-latest + arch: x86 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: ./lcov.info + flags: unittests + name: codecov-umbrella + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.travis.yml b/.travis.yml index fa4c131..2baf28a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,6 @@ language: julia -julia: - - 1 # current stable - - nightly - -script: - - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - - julia --check-bounds=yes -e 'using Pkg; Pkg.build()' - - xvfb-run julia -e 'using Pkg; Pkg.test("Weave", coverage=true)' -after_success: - - julia -e 'using Pkg; cd(Pkg.dir("Weave")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' - jobs: - allow_failures: - - julia: nightly include: - stage: "Documentation" julia: 1