From 2032d34512aa4057d5678dec320b73dac36ce636 Mon Sep 17 00:00:00 2001 From: richet Date: Wed, 17 Mar 2021 13:56:14 +0100 Subject: [PATCH] travis -> GHA & v1.12 --- .github/workflows/ant.yml | 60 +++++++++++++++++++++++++++++++++++++ .travis.yml | 63 --------------------------------------- README.md | 2 +- build.xml | 2 +- 4 files changed, 62 insertions(+), 65 deletions(-) create mode 100644 .github/workflows/ant.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml new file mode 100644 index 0000000..f6aece9 --- /dev/null +++ b/.github/workflows/ant.yml @@ -0,0 +1,60 @@ +name: Java CI + +on: + push: + branches: [ master ] + tags: [ 'v*.*' ] + pull_request: + branches: [ master ] + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + java: [ 8 ] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + java-package: jdk + - run: | + WD=$PWD + cd .. + git clone https://github.com/Funz/funz-profile + cd $WD + shell: bash + - run: ant -noinput -buildfile build.xml test + + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 1.8 + java-package: jdk + - run: | + WD=$PWD + cd .. + git clone https://github.com/Funz/funz-profile + cd $WD + - run: | + ant clean dist + cd dist; zip -r ../plugin-Scale.zip *; cd .. + ant install + zip -r Funz-Scale.zip Funz-Scale + - uses: actions/upload-artifact@v2 + with: + path: dist + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ./*-Scale.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b2fce63..0000000 --- a/.travis.yml +++ /dev/null @@ -1,63 +0,0 @@ -language: minimal -cache: - directories: - - $HOME/.jabba/ - -matrix: - include: - - name: "Linux JDK8" - os: linux - dist: xenial - env: - - JDK="adopt@1.8" - - name: "Linux JDK11" - os: linux - dist: xenial - env: - - JDK="openjdk@1.11" - - name: "Linux JDK13" - os: linux - dist: xenial - env: - - JDK="openjdk@1.13" - -env: - global: - # Convenience variables for shortening commands - - GRAVIS_REPO="https://github.com/DanySK/Gravis-CI.git" - - GRAVIS="$HOME/gravis" - -before_install: - # Check out the script set - - travis_retry git clone --depth 1 $GRAVIS_REPO $GRAVIS - - source $GRAVIS/install-jdk - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install ant -y; fi - -install: - - WD=$PWD - - cd .. - - git clone https://github.com/Funz/funz-profile - - cd $WD - -script: - - ant test - -before_deploy: - - ant clean dist - - cd dist; zip -r ../plugin-Scale.zip *; cd .. - - ant install - - zip -r Funz-Scale.zip Funz-Scale - -deploy: - provider: releases - api_key: - secure: ZF1xa95P8B5Xc8z6Ky/H1DNJeeFMNAR76WlwvSjzooJcRJb5QonfaHdK1P48/wEDy/ffhgYqyPo7doJp+R1WLyARgemEeTv+p+WyOrxxVngVtEp2FkE3+azP7Ehh7v5hbtPPWn/c0KBhaacRBIuU6XXseBPPFY6w5qSs18F5yspNaoVA22GyKhC7e9KbX528uBdIoI+P/j4fLfPCSaKuDas1qLR/MvUvMrtDlrqfWSrYadt0H2ZX56K9b+8sovnlz1CX3ce4m24WtuqfEhw2Vj0nIMmRHVdQ8pRzABUUMVDPkGuDGVjE2wW2ch+3yO0YBjOBml0V0l5VwmujIOcoW4p8WTougN0RNKkGtoEVic900iGODfkakxENXQY/S3UUgzes0ySvdwVxXoEnxz/cIQehmeg4u7VWHF3YLI9rP+jZtGiZfsynWEiD/skCRkrrhd0K3m7z/3EE+TjqplsCKvYUo+yrEClYfh/a603PcLgRK3Xk3hkrzeiJZvT6YSVo/+MbT6YGKYt6/Cf8dSIv5KoiYxyZXl1oZ4P9HAE0LkrpnrfPuKCH786S5lcfk258L0KV/Uw0ehBG6VjHXlE/BjsM03kIIPb4GQPvlWxjY/zmPZQ/XAW13WfKykHX5pN68Y6ZQD5LiHMGqR1UiIk1Ts6sB8xRnrIPtP+8fURNDa4= - file_glob: true - file: - - Funz-*.zip - - plugin-*.zip - on: - tags: true - branch: master - skip_cleanup: true - overwrite: true diff --git a/README.md b/README.md index 77c139e..d7def5c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/Funz/plugin-Scale.png)](https://travis-ci.org/Funz/plugin-Scale) +[![.github/workflows/ant.yml](https://github.com/Funz/plugin-Scale/actions/workflows/ant.yml/badge.svg)](https://github.com/Funz/plugin-Scale/actions/workflows/ant.yml) # Funz plugin: Scale diff --git a/build.xml b/build.xml index 9383328..28b1f69 100755 --- a/build.xml +++ b/build.xml @@ -3,7 +3,7 @@ - +