diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..2b4b93c68 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,22 @@ +name: GitHub CI + +on: [push] + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: jdk setup + uses: actions/setup-java@v1 + with: + java-version: 11 + java-package: jdk + architecture: x64 +# - name: unit test +# run: ./mvnw --batch-mode --activate-profiles indy clean test +# - name: integration test +# run: ./mvnw --batch-mode --activate-profiles indy -Dmaven.test.skip=true clean install invoker:install invoker:run + - name: full test + run: ./mvnw --batch-mode --activate-profiles indy clean install invoker:install invoker:run diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 680e8f9d4..000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -dist: focal -language: java -jdk: openjdk11 -sudo: false - -# unit test -#script: "./mvnw --batch-mode --activate-profiles indy clean test" - -# integration test -before_install: "./mvnw --batch-mode clean" -install: "./mvnw --batch-mode --activate-profiles indy install" -before_script: "./mvnw --batch-mode invoker:install" -script: "./mvnw --batch-mode --activate-profiles indy -Dinvoker.streamLogs=true invoker:run" diff --git a/integrationTest.groovy b/integrationTestSuite.groovy similarity index 97% rename from integrationTest.groovy rename to integrationTestSuite.groovy index 3d0b22dfd..46cabbe19 100644 --- a/integrationTest.groovy +++ b/integrationTestSuite.groovy @@ -44,7 +44,7 @@ for (int i = 0; i < groovyVersions.size(); i++) { quietlyRunCommand "${mvn()} -B clean" void testVersion() { - def exitCode = runCommand "${mvn()} -B -P ${profiles} -Dinvoker.streamLogs=true ${properties} invoker:run" + def exitCode = runCommand "${mvn()} --batch-mode --activate-profiles ${profiles} -Dinvoker.streamLogs=true ${properties} invoker:run" os.flush() os.close() if (exitCode != 0) {