From b2cff421b20a24ed9c8d4cc579d0cd81fed265cb Mon Sep 17 00:00:00 2001 From: Olafur Pall Geirsson Date: Thu, 19 Mar 2020 13:42:43 +0000 Subject: [PATCH] Migrate most tests to GH Actions for CI --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ .jvmopts | 9 ++++---- .travis.yml | 15 +------------- appveyor.yml | 30 --------------------------- 4 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..a75acb2109 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI +on: + push: + branches: + - master + pull_request: +jobs: + test: + name: ${{ matrix.command }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + command: + - "ci-211" + - "ci-212" + steps: + - uses: actions/checkout@v2 + - uses: olafurpg/setup-scala@v7 + - run: sbt ${{ matrix.command }} + jdk11: + name: JDK11 tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: olafurpg/setup-scala@v7 + with: + java-version: adopt@1.11 + - run: sbt ci-212 + windows: + name: Windows tests + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: olafurpg/setup-scala@v7 + - run: ./sbt ci-212-windows + shell: bash + checks: + name: Scalafmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: olafurpg/setup-scala@v7 + - run: ./scalafmt --test diff --git a/.jvmopts b/.jvmopts index cdf0046d7d..778b9a757d 100644 --- a/.jvmopts +++ b/.jvmopts @@ -1,8 +1,7 @@ --Dfile.encoding=UTF8 --Xss8m +-Xss4m -Xms1G --Xmx4G --XX:ReservedCodeCacheSize=250M +-Xmx2G +-XX:ReservedCodeCacheSize=1024m -XX:+TieredCompilation --XX:-UseGCOverheadLimit -XX:+CMSClassUnloadingEnabled +-Dfile.encoding=UTF-8 diff --git a/.travis.yml b/.travis.yml index 2e465bcf04..2041d6545a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,21 +11,8 @@ before_install: fi jobs: include: - - name: Scalafmt - script: ./scalafmt --test - - name: 2.11 - script: ./sbt ci-211 - - name: 2.12 - script: ./sbt ci-212 - - jdk: openjdk11 - name: 2.12 - script: ./sbt ci-212 - - # Disabled until stable v0.6 - # - env: TEST="mima" - # script: sbt mima - stage: release - script: ./sbt docs/docusaurusPublishGhpages + script: ./sbt ci-release docs/docusaurusPublishGhpages cache: directories: diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 60dd40f265..0000000000 --- a/appveyor.yml +++ /dev/null @@ -1,30 +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" - APPVEYOR_SAVE_CACHE_ON_ERROR: true - JAVA_OPTS: -Xss2m -Xmx1024m -XX:-TieredCompilation -XX:ReservedCodeCacheSize=48m -Dfile.encoding=UTF-8 -Djna.nosys=true - matrix: - - CI_TEST: ci-212 - -build_script: - - sbt compile - -test_script: - - sbt ci-212-windows - -# see CONTRIBUTING.md#AppVeyor -cache: - - '%USERPROFILE%\.ivy2\cache' - - '%USERPROFILE%\.sbt' - - '%LOCALAPPDATA%\Coursier\cache' - - '%USERPROFILE%\scoop\cache'