Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
build_java_project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build Java Project | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: .github/workflows/sbt-build.sh 2.13.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: sbt GitHub Release | ||
env: | ||
CI_BRANCH: ${GITHUB_REF#refs/heads/} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_AUTH_TOKEN }} | ||
run: | | ||
echo "Run] sbt GitHub release" | ||
echo 'sbt -J-Xmx2048m "; clean; test; packagedArtifacts; gitHubRelease"' | ||
sbt -J-Xmx2048m "; clean; test; packagedArtifacts; gitHubRelease" | ||
- name: sbt Publish | ||
env: | ||
CI_BRANCH: ${GITHUB_REF#refs/heads/} | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }} | ||
run: | | ||
echo "Run] sbt publish" | ||
echo 'sbt -J-Xmx2048m "; clean; publish"' | ||
sbt -J-Xmx2048m "; clean; publish" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash -e | ||
|
||
set -x | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "Scala version is missing. Please enter the Scala version." | ||
echo "sbt-build.sh 2.11.12" | ||
else | ||
scala_version=$1 | ||
echo "============================================" | ||
echo "Build projects" | ||
echo "--------------------------------------------" | ||
echo "" | ||
CURRENT_BRANCH_NAME="${GITHUB_REF#refs/heads/}" | ||
export CI_BRANCH=$CURRENT_BRANCH_NAME | ||
if [[ "$CURRENT_BRANCH_NAME" == "master" || "$CURRENT_BRANCH_NAME" == "release" ]] | ||
then | ||
sbt -d -J-Xmx2048m "; ++ ${scala_version}!; clean; jacoco" | ||
sbt -d -J-Xmx2048m "; ++ ${scala_version}!; packagedArtifacts" | ||
else | ||
sbt -d -J-Xmx2048m "; ++ ${scala_version}!; clean; jacoco; package" | ||
fi | ||
sbt -d -J-Xmx2048m "; ++ ${scala_version}!; jacocoCoveralls" | ||
|
||
echo "============================================" | ||
echo "Building projects: Done" | ||
echo "============================================" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.3.1 | ||
sbt.version = 1.3.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters