Skip to content

Commit

Permalink
travis -> GHA & v1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrichet committed Mar 17, 2021
1 parent c9d36ac commit 56994a8
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 65 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
@@ -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-Python.zip *; cd ..
ant install
zip -r Funz-Python.zip Funz-Python
- uses: actions/upload-artifact@v2
with:
path: dist
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./*-Python.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}



63 changes: 0 additions & 63 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/Funz/plugin-Python.png)](https://travis-ci.org/Funz/plugin-Python)
[![.github/workflows/ant.yml](https://github.com/Funz/plugin-Python/actions/workflows/ant.yml/badge.svg)](https://github.com/Funz/plugin-Python/actions/workflows/ant.yml)

# Funz plugin: Python 3

Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<property name="code.name" value="Python" />
<property name="install.dir" value="${basedir}/Funz-${code.name}" />

<property name="funz.release" value="v1.11" />
<property name="funz.release" value="v1.12" />

<property name="build_plugin.xml" location="../funz-profile/build_plugin.xml" />
<import file="${build_plugin.xml}"/>
Expand Down

0 comments on commit 56994a8

Please sign in to comment.