From ed5fba4dbc7d8b0e620f61bc54baaab61953d3e8 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 28 Sep 2021 12:06:52 +0200 Subject: [PATCH] Switch CI to GH Actions. --- .appveyor.yml | 33 --------------------------- .github/workflows/TagBot.yml | 15 ++++++++++++ .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++ .travis.yml | 29 ------------------------ 4 files changed, 59 insertions(+), 62 deletions(-) delete mode 100644 .appveyor.yml create mode 100644 .github/workflows/TagBot.yml create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 776314a..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,33 +0,0 @@ -environment: - matrix: - - julia_version: 1.0 - - julia_version: 1.5 - - julia_version: latest - -platform: - - x86 # 32-bit - - x64 # 64-bit - -# matrix: -# allow_failures: -# - julia_version: latest - -branches: - only: - - master - - /release-.*/ - -notifications: - - provider: Email - on_build_success: false - on_build_failure: false - on_build_status_changed: false - -install: - - ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1")) - -build: off - -test_script: - - echo "%JL_TEST_SCRIPT%" - - C:\julia\bin\julia -e "%JL_TEST_SCRIPT%" diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 0000000..f49313b --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,15 @@ +name: TagBot +on: + issue_comment: + types: + - created + workflow_dispatch: +jobs: + TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ssh: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..90bcd33 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + push: + branches: + - 'master' + - 'release-' + tags: '*' + pull_request: + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + version: + - '1.0' + - '1' + - 'nightly' + os: + - ubuntu-latest + - macos-latest + # - windows-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + - name: "Pkg.instantiate and install cli" + run: | + echo "${PWD}/bin" >> $GITHUB_PATH + julia --project -e 'using Pkg; Pkg.instantiate()' + julia --project -e 'using jlpkg; jlpkg.install(; command = "jlpkg-ci", destdir = joinpath(pwd(), "bin"))' + - name: "Run tests (Unix)" + if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest' + run: jlpkg-ci --project test --coverage + - name: "Run tests (Windows)" + if: matrix.os == 'windows-latest' + run: cmd /c jlpkg-ci --project test --coverage + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: lcov.info diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5d5366f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -os: - - linux - - osx -julia: - - 1.0 - - 1.5 - - nightly -# matrix: -# allow_failures: -# - julia: nightly -branches: - only: - - master - - /^v\d+\.\d+(\.\d+)?(-\S*)?$/ -script: - - export PATH=$PWD/bin:$PATH - - julia --project -e 'using jlpkg; jlpkg.install(command = "jlpkg-ci", destdir = joinpath(pwd(), "bin"))' - - jlpkg-ci --project test --coverage -after_success: - - if [[ $TRAVIS_JULIA_VERSION = 1.5 ]] && [[ $TRAVIS_OS_NAME = linux ]]; then - julia --project=test/coverage -e 'using Pkg; Pkg.instantiate(); - using Coverage; Codecov.submit(Codecov.process_folder())'; - fi -notifications: - email: false -git: - depth: 99999999