diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..c8aeb3a2 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,24 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file pom.xml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 66143d4a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -# TODO look up documentation and set to the correct values -# TODO use jar instead of war -os: linux -language: java -notifications: - email: false -env: -- PROFILE=$([ "$TRAVIS_BRANCH" == "master" ] && echo "prod" || echo "development") -before_install: -- openssl aes-256-cbc -K $encrypted_a6a69c5b1756_key -iv $encrypted_a6a69c5b1756_iv - -in secrets/secrets.tar.enc -out secrets.tar -d -- tar xvf secrets.tar -install: -- mvn -P $PROFILE install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -script: -- mvn -P $PROFILE test -B -before_deploy: -- cp target/moltimate-backend-1.0.0.war moltimate-backend.war -- ./set-env-variables.sh -deploy: -- provider: gae - edge: true - project: moltimate - keyfile: client-secret.json - on: master -- provider: gae - edge: true - project: moltimate - version: development - promote: false - keyfile: client-secret.json - on: dev