Browse Source

Switch CI to GH actions.

pull/133/head
Fredrik Ekre 5 years ago
parent
commit
6db13a8d48
  1. 36
      .appveyor.yml
  2. 53
      .github/workflows/ci.yml
  3. 30
      .github/workflows/docs.yml
  4. 31
      .travis.yml
  5. 11
      README.md
  6. 12
      examples/README.jl

36
.appveyor.yml

@ -1,36 +0,0 @@ @@ -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%"

53
.github/workflows/ci.yml

@ -0,0 +1,53 @@ @@ -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

30
.github/workflows/docs.yml

@ -1,30 +0,0 @@ @@ -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

31
.travis.yml

@ -1,31 +0,0 @@ @@ -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

11
README.md

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
# Literate
| **Documentation** | **Build Status** |
|:------------------------- |:----------------------------------------------------------------------------------------------- |
| [![][docs-img]][docs-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url] |
|:------------------------- |:--------------------------------------------------------------------- |
| [![][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) @@ -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

12
examples/README.jl

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
# # Literate
#
# | **Documentation** | **Build Status** |
# |:------------------------- |:----------------------------------------------------------------------------------------------- |
# | [![][docs-img]][docs-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url] |
# |:------------------------- |:--------------------------------------------------------------------- |
# | [![][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) @@ -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
#

Loading…
Cancel
Save