Skip to content

Commit

Permalink
Some improvements to CI (#133)
Browse files Browse the repository at this point in the history
* add CompatHelper
* reduce frequency of TagBot to once per day
* add scripts to run CI on ARM architectures with Drone CI
* add FreeBSD to Travis
* run Travis only on master, instead of all branches
* cache artifacts on Travis and AppVeyor
  • Loading branch information
giordano authored May 21, 2020
1 parent 0290ea1 commit 3a4a549
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local Pipeline(os, arch, version) = {
kind: "pipeline",
name: os+" - "+arch+" - Julia "+version,
platform: {
os: os,
arch: arch
},
steps: [
{
name: "build",
image: "julia:"+version,
commands: [
"julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
]
}
]
};

[
Pipeline("linux", "arm", "1.3"),
Pipeline("linux", "arm", "1.4"),
Pipeline("linux", "arm64", "1.3"),
Pipeline("linux", "arm64", "1.4")
]
57 changes: 57 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
kind: pipeline
name: linux - arm - Julia 1.3

platform:
os: linux
arch: arm

steps:
- name: build
image: julia:1.3
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

---
kind: pipeline
name: linux - arm - Julia 1.4

platform:
os: linux
arch: arm

steps:
- name: build
image: julia:1.4
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

---
kind: pipeline
name: linux - arm64 - Julia 1.3

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.3
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

---
kind: pipeline
name: linux - arm64 - Julia 1.4

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.4
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"

...
14 changes: 14 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CompatHelper
on:
schedule:
- cron: 21 0 * * *
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
- cron: 51 7 * * *
jobs:
TagBot:
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: julia
os:
- linux
- osx
- freebsd

julia:
- 1.3
Expand All @@ -17,5 +18,16 @@ env:
notifications:
email: false

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

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

after_success:
- julia -e 'cd(Pkg.dir("DecFP")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ branches:
- master
- /release-.*/

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

notifications:
- provider: Email
on_build_success: false
Expand Down

0 comments on commit 3a4a549

Please sign in to comment.