From 7c0f4f47d4b207d90ab0f03322536ddde8a846dc Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 15:56:33 +0100 Subject: [PATCH 1/9] add CI action --- .github/workflows/ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) 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..be5d6ab --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + # if: "!contains(github.event.head_commit.message, '[skip ci]')" + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.5' + # - 'nightly' + os: + - ubuntu-latest + - macOS-latest + - windows-latest + arch: + - x64 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: actions/cache@v1 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: lcov.info + - uses: julia-actions/julia-uploadcoveralls@v1 + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} + + Skip: + if: "contains(github.event.head_commit.message, '[skip ci]')" + runs-on: ubuntu-latest + steps: + - name: Skip CI 🚫 + run: echo skip ci + From 331a9e670a8b5910904fca21063e8f87febecdf8 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 16:06:00 +0100 Subject: [PATCH 2/9] rename appveyor.yml [skip ci] --- .appveyor.yml => appveyor.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .appveyor.yml => appveyor.yml (100%) diff --git a/.appveyor.yml b/appveyor.yml similarity index 100% rename from .appveyor.yml rename to appveyor.yml From e98ebfc0fab887436a2a8a25c70cfa69c1870373 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 16:06:49 +0100 Subject: [PATCH 3/9] update CI action --- .github/workflows/ci.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be5d6ab..ddeaecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,13 @@ name: CI on: - - push - - pull_request + - push: + branches: + - main + - dev + - pull_request: jobs: test: - # if: "!contains(github.event.head_commit.message, '[skip ci]')" + if: "!contains(github.event.head_commit.message, '[skip ci]')" name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: @@ -44,11 +47,3 @@ jobs: - uses: julia-actions/julia-uploadcoveralls@v1 env: COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} - - Skip: - if: "contains(github.event.head_commit.message, '[skip ci]')" - runs-on: ubuntu-latest - steps: - - name: Skip CI 🚫 - run: echo skip ci - From 3bea31615ff0f46fd8ee8391d56d1186dd54fa79 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 16:10:40 +0100 Subject: [PATCH 4/9] update appveyor.yml --- appveyor.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 88342a3..762a717 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,26 +1,34 @@ # Documentation: https://github.com/JuliaCI/Appveyor.jl + environment: matrix: - - julia_version: 1.4 + - julia_version: 1 + platform: - x64 + 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_script: - echo "%JL_BUILD_SCRIPT%" - C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%" + test_script: - echo "%JL_TEST_SCRIPT%" - C:\julia\bin\julia -e "%JL_TEST_SCRIPT%" + on_success: - echo "%JL_CODECOV_SCRIPT%" - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%" From aa0387a6f47aeb2679cbb17790235ca8938506a5 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 16:22:42 +0100 Subject: [PATCH 5/9] update CI action --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddeaecd..747b8ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,9 @@ on: - pull_request: jobs: test: - if: "!contains(github.event.head_commit.message, '[skip ci]')" name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} + if: "!contains(github.event.head_commit.message, 'ci skip')" strategy: fail-fast: false matrix: From b014b5579aff45a727ff90b350d8bd4811508dd6 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 16:25:39 +0100 Subject: [PATCH 6/9] fix on: in CI action --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 747b8ef..6da8667 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,10 @@ name: CI on: - - push: - branches: - - main - - dev - - pull_request: + push: + branches: + - main + - dev + pull_request: jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} From 14dc98c71ef22f79e953a3a9a398cb8876bd26d9 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 16:45:22 +0100 Subject: [PATCH 7/9] update CI badge [skip ci] --- .github/workflows/ci.yml | 2 +- README.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6da8667..45215a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'skip ci')" strategy: fail-fast: false matrix: diff --git a/README.md b/README.md index 88d9f8d..583c29d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Postprocessing -[![Build Status](https://travis-ci.com/ranocha/Postprocessing.jl.svg?branch=master)](https://travis-ci.com/ranocha/Postprocessing.jl) -[![Build Status](https://ci.appveyor.com/api/projects/status/github/ranocha/Postprocessing.jl?svg=true)](https://ci.appveyor.com/project/ranocha/Postprocessing-jl) +[![Build Status](https://github.com/ranocha/Postprocessing.jl/workflows/CI/badge.svg)](https://github.com/ranocha/Postprocessing.jl/actions) [![Codecov](https://codecov.io/gh/ranocha/Postprocessing.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/ranocha/Postprocessing.jl) [![Coveralls](https://coveralls.io/repos/github/ranocha/Postprocessing.jl/badge.svg?branch=master)](https://coveralls.io/github/ranocha/Postprocessing.jl?branch=master) From b02f89aa4b2b2fd9612977aca6955ad399ba98de Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 16:56:03 +0100 Subject: [PATCH 8/9] update CI action --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45215a8..a58c570 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,12 @@ name: CI + on: push: branches: - main - dev pull_request: + jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} From 2cf3c5dcba6db54cfd5bf603a8b4411f18a09446 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 3 Nov 2020 17:01:54 +0100 Subject: [PATCH 9/9] remove Travis CI --- .travis.yml => outdated/.travis.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .travis.yml => outdated/.travis.yml (100%) diff --git a/.travis.yml b/outdated/.travis.yml similarity index 100% rename from .travis.yml rename to outdated/.travis.yml