From c34feb894c8df053001dc42ca604223c36fe77a1 Mon Sep 17 00:00:00 2001 From: Mark Vittozzi Date: Thu, 4 Mar 2021 16:31:31 -0500 Subject: [PATCH 1/2] creating maven.yml creating maven.yml --- .github/workflows/maven.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/maven.yml 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 From 469c946d323e4758d787dd200b87578fbfc5d79f Mon Sep 17 00:00:00 2001 From: mev5063 Date: Wed, 24 Mar 2021 23:12:52 -0400 Subject: [PATCH 2/2] Removing travis file. --- .travis.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .travis.yml 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