From 4aec0acb829fb503e865194b74e170880b03869a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Thu, 23 Apr 2020 12:53:35 +0100 Subject: [PATCH] Some CI improvements * Add CompatHelper * Reduce frequency of TagBot to once per day * Remove Cirrus script, it's not working properly lately * Add FreeBSD to Travis * Run Travis only on master and a few special-named branches * Cache artifacts in Travis and AppVeyor --- .cirrus.yml | 14 ------------ .github/workflows/CompatHelper.yml | 16 ++++++++++++++ .github/workflows/TagBot.yml | 2 +- .travis.yml | 34 ++++++++++++++++++++++++++---- appveyor.yml | 3 +++ 5 files changed, 50 insertions(+), 19 deletions(-) delete mode 100644 .cirrus.yml create mode 100644 .github/workflows/CompatHelper.yml diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index f5f31c4..0000000 --- a/.cirrus.yml +++ /dev/null @@ -1,14 +0,0 @@ -freebsd_instance: - image: freebsd-12-0-release-amd64 -task: - name: FreeBSD - env: - matrix: - - JULIA_VERSION: 1.3 - - JULIA_VERSION: nightly - install_script: - - sh -c "$(fetch https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh -o -)" - build_script: - - cirrusjl build - test_script: - - cirrusjl test diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..9b74667 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,16 @@ +name: CompatHelper + +on: + schedule: + - cron: '18 06 * * *' + +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index d77d3a0..3f5bfc7 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -1,7 +1,7 @@ name: TagBot on: schedule: - - cron: 0 * * * * + - cron: 37 09 * * * jobs: TagBot: runs-on: ubuntu-latest diff --git a/.travis.yml b/.travis.yml index 213ab78..fe62e4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,9 @@ julia: - 1.3 - nightly env: - matrix: - - JULIA_FFTW_PROVIDER=FFTW - - JULIA_FFTW_PROVIDER=MKL - - JULIA_NUM_THREADS=2 + - JULIA_FFTW_PROVIDER=FFTW + - JULIA_FFTW_PROVIDER=MKL + - JULIA_NUM_THREADS=2 notifications: email: false # uncomment the following lines to override the default test script @@ -21,8 +20,35 @@ notifications: after_success: - julia -e 'using Pkg; Pkg.add("Coverage"); Pkg.dir("FFTW"); using Coverage; Coveralls.submit(Coveralls.process_folder())' +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 + jobs: include: + - os: freebsd + julia: 1.3 + env: + - JULIA_FFTW_PROVIDER=FFTW + - os: freebsd + julia: 1.3 + env: + - JULIA_NUM_THREADS=2 + - os: freebsd + julia: nightly + env: + - JULIA_FFTW_PROVIDER=FFTW + - os: freebsd + julia: nightly + env: + - JULIA_NUM_THREADS=2 - stage: "Documentation" julia: 1.3 os: linux diff --git a/appveyor.yml b/appveyor.yml index a4947fa..03d141d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,6 +3,9 @@ environment: - julia_version: 1.3 - julia_version: nightly +cache: + - '%USERPROFILE%\.julia\artifacts' + platform: - x86 # 32-bit - x64 # 64-bit