From 3ee0602e25af2f2c6874264d1e1760b38e5137e7 Mon Sep 17 00:00:00 2001 From: Olafur Pall Geirsson Date: Mon, 23 Sep 2019 14:15:42 +0100 Subject: [PATCH] Experiment with GitHub Actions --- .github/workflows/ci.yml | 31 +++++++++++++++++++++ .travis.yml | 60 ---------------------------------------- appveyor.yml | 38 ------------------------- azure-pipelines.yml | 6 ---- 4 files changed, 31 insertions(+), 104 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml delete mode 100644 azure-pipelines.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..5cf953bde1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI +on: [push, pull_request] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: olafurpg/setup-scala@v2 + - name: Formatting + run: ./bin/scalafmt --test + - name: Scalafix + run: csbt scalafixCheck + - name: Documentation + run: csbt docs/docusaurusCreateSite + build: + runs-on: ubuntu-latest + strategy: + matrix: + command: + - "slow/testOnly tests.sbt" + - "slow/testOnly tests.mill" + - "slow/testOnly tests.gradle" + - "slow/testOnly tests.maven" + - "slow/testOnly tests.feature" + - "unit/test" + - "+cross/test" + steps: + - uses: actions/checkout@v1 + - uses: olafurpg/setup-scala@v2 + - name: Compile + run: csbt '${{ matrix.command }}' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fa5e35a8df1..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,60 +0,0 @@ -jdk: - - oraclejdk8 -os: - - linux -language: scala -dist: trusty -stages: - - name: test - - name: release - if: (branch = master AND type = push) OR (tag IS present) - -jobs: - include: - # default stage is test - - env: TEST="scalafmt+scalafix+docs" - before_script: nvm install 'lts/*' && nvm use 'lts/*' - script: - - ./bin/scalafmt --test - - sbt scalafixCheck docs/docusaurusCreateSite - - env: TEST="sbt 'slow/testOnly -- tests.sbt'" - script: - - sbt 'slow/testOnly -- tests.sbt' - - env: TEST="sbt 'slow/testOnly -- tests.mill'" - script: - - sbt 'slow/testOnly -- tests.mill' - - env: TEST="sbt 'slow/testOnly -- tests.gradle'" - script: - - sbt 'slow/testOnly -- tests.gradle' - - env: TEST="sbt 'slow/testOnly -- tests.maven'" - script: - - sbt 'slow/testOnly -- tests.maven' - - env: TEST="sbt 'slow/testOnly -- tests.feature'" - script: - - sbt 'slow/testOnly -- tests.feature' - - env: TEST="sbt +cross/test" - script: - - sbt +cross/test - - stage: release - before_script: nvm install 'lts/*' && nvm use 'lts/*' - script: - - git fetch --tags - - sbt ci-release docs/docusaurusPublishGhpages - -cache: - directories: - - $HOME/.sbt/0.13/dependency - - $HOME/.sbt/1.0/dependency - - $HOME/.sbt/boot/scala* - - $HOME/.sbt/launchers - - $HOME/.ivy2/cache - - $HOME/.cache/coursier - - $HOME/.coursier - yarn: true - -before_cache: - - du -h -d 1 $HOME/.ivy2/cache - - du -h -d 2 $HOME/.sbt/ - - find $HOME/.sbt -name "*.lock" -type f -delete - - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete - - rm -rf $HOME/.ivy2/local diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index c857dda4974..00000000000 --- a/appveyor.yml +++ /dev/null @@ -1,38 +0,0 @@ -version: '{build}' -os: Windows Server 2012 -install: - - cmd: SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0 - - cmd: SET PATH=%JAVA_HOME%\bin;%PATH% - - cmd: choco install sbt -ia "INSTALLDIR=""C:\sbt""" - - cmd: SET PATH=C:\sbt\bin;%JAVA_HOME%\bin;%PATH% - # disable dynVer - - ps: Remove-Item Env:\CI - - cmd: sbt version & exit 0 - -environment: - APPVEYOR_CACHE_ENTRY_ZIP_ARGS: "-t7z -m0=lzma -mx=9" - JAVA_OPTS: -Xss2m -Xmx4096m -XX:-TieredCompilation -XX:ReservedCodeCacheSize=48m -Dfile.encoding=UTF-8 -Djna.nosys=true -before_build: - - ps: | - @" - -Xss2m - -Xmx4096m - -XX:ReservedCodeCacheSize=48m - -XX:-TieredCompilation - -Dfile.encoding=UTF-8 - "@ > ".jvmopts" -build_script: - - sbt publishLocal -test_script: - - sbt test -after_test: - - ps: | - Get-ChildItem C:\Users\appveyor\.ivy2\* -Include "ivydata-*.properties" -Recurse | Remove-Item - Remove-Item C:\Users\appveyor\.ivy2\.sbt.ivy.lock -Force - Remove-Item C:\Users\appveyor\.ivy2\local -Recurse - Get-ChildItem C:\Users\appveyor\.sbt\* -Include "*.lock" -Recurse | Remove-Item -Force -cache: - - C:\sbt\ - - C:\Users\appveyor\.ivy2 - - '%LOCALAPPDATA%\Coursier\Cache' - - C:\Users\appveyor\.sbt diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index a91b77939c5..00000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,6 +0,0 @@ -jobs: -- job: Linux - pool: - vmImage: 'Ubuntu-16.04' - steps: - - script: ./sbt unit/test \ No newline at end of file