diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 10af753..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,36 +0,0 @@ -environment: - matrix: - - julia_version: 1.5 - # - julia_version: latest - -platform: - - x86 # 32-bit - - x64 # 64-bit - -## uncomment the following lines to allow failures on nightly julia -## (tests will run but not make your overall status red) -#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_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%" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0b6bbb5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,53 @@ +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 + include: + - os: windows-latest + version: '1' + - os: macOS-latest + version: '1' + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + - 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 + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: '1' + - name: Install dependencies + run: julia --project=docs -e 'using Pkg; Pkg.instantiate()' + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + run: julia --project=docs --color=yes docs/make.jl diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 0fedbd0..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Documentation - -on: - push: - branches: - - 'master' - - 'release-' - tags: '*' - pull_request: - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - julia-version: [1.5] - julia-arch: [x86] - os: [ubuntu-latest] - steps: - - uses: actions/checkout@v1.0.0 - - uses: julia-actions/setup-julia@latest - with: - version: ${{ matrix.julia-version }} - - name: Install dependencies - run: julia --project=docs -e 'using Pkg; Pkg.instantiate()' - - name: Build and deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} - run: julia --project=docs --color=yes docs/make.jl diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4792f26..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -os: - - linux - - osx -julia: - - 1.0 - - 1.5 - - nightly -branches: - only: - - master - - /^v\d+\.\d+(\.\d+)?(-\S*)?$/ -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 -# jobs: -# include: -# - stage: Documentation -# julia: 1.5 -# os: linux -# script: -# - julia --project=docs -e 'using Pkg; Pkg.instantiate()' -# - julia --project=docs --color=yes docs/make.jl -# after_success: skip -notifications: - email: false -git: - depth: 99999999 diff --git a/README.md b/README.md index 6e53755..90df6e1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Literate -| **Documentation** | **Build Status** | -|:------------------------- |:----------------------------------------------------------------------------------------------- | -| [![][docs-img]][docs-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url] | +| **Documentation** | **Build Status** | +|:------------------------- |:--------------------------------------------------------------------- | +| [![][docs-img]][docs-url] | [![][gh-actions-img]][gh-actions-url] [![][codecov-img]][codecov-url] | Literate is a package for [Literate Programming](https://en.wikipedia.org/wiki/Literate_programming). The main purpose is to facilitate writing Julia examples/tutorials that can be included in @@ -27,11 +27,8 @@ Literate.markdown("examples/README.jl", "."; documenter=false) [docs-img]: https://img.shields.io/badge/docs-latest%20release-blue.svg [docs-url]: https://fredrikekre.github.io/Literate.jl/ -[travis-img]: https://travis-ci.org/fredrikekre/Literate.jl.svg?branch=master -[travis-url]: https://travis-ci.org/fredrikekre/Literate.jl - -[appveyor-img]: https://ci.appveyor.com/api/projects/status/xe0ghtyas12wv555/branch/master?svg=true -[appveyor-url]: https://ci.appveyor.com/project/fredrikekre/Literate-jl/branch/master +[gh-actions-img]: https://github.com/fredrikekre/Literate.jl/workflows/CI/badge.svg +[gh-actions-url]: https://github.com/fredrikekre/Literate.jl/actions?query=workflow%3ACI [codecov-img]: https://codecov.io/gh/fredrikekre/Literate.jl/branch/master/graph/badge.svg [codecov-url]: https://codecov.io/gh/fredrikekre/Literate.jl diff --git a/examples/README.jl b/examples/README.jl index e0227ad..337c008 100644 --- a/examples/README.jl +++ b/examples/README.jl @@ -1,8 +1,8 @@ # # Literate # -# | **Documentation** | **Build Status** | -# |:------------------------- |:----------------------------------------------------------------------------------------------- | -# | [![][docs-img]][docs-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url] | +# | **Documentation** | **Build Status** | +# |:------------------------- |:--------------------------------------------------------------------- | +# | [![][docs-img]][docs-url] | [![][gh-actions-img]][gh-actions-url] [![][codecov-img]][codecov-url] | # # Literate is a package for [Literate Programming](https://en.wikipedia.org/wiki/Literate_programming). # The main purpose is to facilitate writing Julia examples/tutorials that can be included in @@ -25,12 +25,8 @@ Literate.markdown("examples/README.jl", "."; documenter=false) # [docs-img]: https://img.shields.io/badge/docs-latest%20release-blue.svg # [docs-url]: https://fredrikekre.github.io/Literate.jl/ # -# [travis-img]: https://travis-ci.org/fredrikekre/Literate.jl.svg?branch=master -# [travis-url]: https://travis-ci.org/fredrikekre/Literate.jl -# -# [appveyor-img]: https://ci.appveyor.com/api/projects/status/xe0ghtyas12wv555/branch/master?svg=true -# [appveyor-url]: https://ci.appveyor.com/project/fredrikekre/Literate-jl/branch/master +# [gh-actions-img]: https://github.com/fredrikekre/Literate.jl/workflows/CI/badge.svg +# [gh-actions-url]: https://github.com/fredrikekre/Literate.jl/actions?query=workflow%3ACI # # [codecov-img]: https://codecov.io/gh/fredrikekre/Literate.jl/branch/master/graph/badge.svg # [codecov-url]: https://codecov.io/gh/fredrikekre/Literate.jl -#