Skip to content

Commit

Permalink
Some improvements to CI
Browse files Browse the repository at this point in the history
* Add CompatHelper and reduce frequency of TagBot to once per day
* Move FreeBSD CI to Travis
* Cache artifacts on Travis and AppVeyor
* Run Travis CI only on master
  • Loading branch information
giordano committed May 3, 2020
1 parent a9a14fb commit 79acf74
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 32 deletions.
17 changes: 0 additions & 17 deletions .cirrus.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/CompatHelper.yml
@@ -0,0 +1,14 @@
name: CompatHelper
on:
schedule:
- cron: 18 13 * * *
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
run: julia -e 'using CompatHelper; CompatHelper.main()'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/TagBot.yml
@@ -1,7 +1,7 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
- cron: 29 22 * * *
jobs:
TagBot:
runs-on: ubuntu-latest
Expand Down
53 changes: 41 additions & 12 deletions .travis.yml
@@ -1,17 +1,46 @@
language: julia

os:
- linux
- osx
- linux
- osx
- freebsd

julia:
- 1.0
- 1.1
- nightly
- 1.0
- 1.4
- nightly

notifications:
email: false
#script: # use the default script which is equivalent to the following
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'VERSION >= v"0.7.0-DEV.5183" && using Pkg; Pkg.clone(pwd()); Pkg.build("FITSIO"); Pkg.test("FITSIO"; coverage=true)';
email: false

cache:
directories:
- $HOME/.julia/artifacts

branches:
only:
- master
- gh-pages # For building documentation
- /^testing-.*$/ # testing branches
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags

jobs:
allow_failures:
- julia: nightly
include:
- stage: "Documentation"
julia: 1.4
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate();
include("docs/make.jl")'
after_success: skip

after_success:
- julia -e 'VERSION >= v"0.7.0-DEV.5183" && using Pkg; Pkg.add("Documenter")'
- julia -e 'VERSION >= v"0.7.0-DEV.5183" && using Pkg; cd(Pkg.dir("FITSIO")); include(joinpath("docs", "make.jl"))'
- julia -e 'VERSION >= v"0.7.0-DEV.5183" && using Pkg; cd(Pkg.dir("FITSIO")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
- |
julia -e '
using Pkg
Pkg.add("Coverage")
using Coverage
Coveralls.submit(Coveralls.process_folder())'
7 changes: 5 additions & 2 deletions appveyor.yml
@@ -1,7 +1,7 @@
environment:
matrix:
- julia_version: 1
- julia_version: 1.1
- julia_version: 1.0
- julia_version: 1.4
- julia_version: nightly

platform:
Expand All @@ -19,6 +19,9 @@ branches:
- master
- /release-.*/

cache:
- '%USERPROFILE%\.julia\artifacts'

notifications:
- provider: Email
on_build_success: false
Expand Down

0 comments on commit 79acf74

Please sign in to comment.