summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zschocke <florian.zschocke@devolo.de>2020-01-11 00:10:00 +0100
committerFlorian Zschocke <florian.zschocke@devolo.de>2020-01-11 00:10:39 +0100
commitbb5d1ef31e65a6160e4fa1302d0ee293d5c344ef (patch)
tree5e1cb57a38f27d1912c06f9d54af3eeca12140aa
parenteaaf99e188ecefbd589fe08fd3b7652190258379 (diff)
parent9b32ae7ecf31187693ed8abe556bfac72e1c62c9 (diff)
downloadgitblit-bb5d1ef31e65a6160e4fa1302d0ee293d5c344ef.tar.gz
gitblit-bb5d1ef31e65a6160e4fa1302d0ee293d5c344ef.zip
Merge branch 'ci' into master
Now we can also build on GitHub ci ignore
-rw-r--r--.github/workflows/ci-build.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
new file mode 100644
index 00000000..e9961f2f
--- /dev/null
+++ b/.github/workflows/ci-build.yml
@@ -0,0 +1,65 @@
+name: Continous build - build and test on every push
+
+on:
+ push:
+ branches-ignore:
+ - release
+ - 'releases/**'
+ - gh-pages
+
+jobs:
+ build:
+ name: Build and test
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ java-version: [8, 11]
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v1
+ with:
+ submodules: true
+
+ - name: Setup Java ${{ matrix.java-version }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java-version }}
+
+ - name: Report Java version
+ run: |
+ java -version
+ javac -version
+
+ - name: Build with Ant
+ run: ant test
+
+ build_j7:
+ name: Build and test on Java 7
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v1
+ with:
+ submodules: true
+
+ - name: Setup Java 7
+ uses: actions/setup-java@v1
+ with:
+ java-version: 7
+
+ - name: Report Java version
+ run: |
+ java -version
+ javac -version
+
+ - name: Setup Moxie
+ run: |
+ wget http://gitblit.github.io/moxie/maven/com/gitblit/moxie/moxie+ant/0.9.4/moxie+ant-0.9.4.tar.gz
+ tar -xzf moxie+ant-0.9.4.tar.gz
+ moxie-0.9.4/bin/moxie -version
+
+ - name: Build with Moxie
+ run: moxie-0.9.4/bin/moxie