From 1d30f1f80826b721dcf8f680ad71b24787fe4dbd Mon Sep 17 00:00:00 2001 From: muriloalvesdev Date: Tue, 17 Jan 2023 18:29:17 -0300 Subject: [PATCH] travis with script execute tests unit --- .ci/unit-tests.sh | 3 +++ travis.yml | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 .ci/unit-tests.sh create mode 100644 travis.yml diff --git a/.ci/unit-tests.sh b/.ci/unit-tests.sh new file mode 100755 index 0000000..aef37fb --- /dev/null +++ b/.ci/unit-tests.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export MAVEN_OPTS="-Xmx1G -Xms128m" +mvn package -Dgroups="unit-tests" \ No newline at end of file diff --git a/travis.yml b/travis.yml new file mode 100644 index 0000000..b2671e8 --- /dev/null +++ b/travis.yml @@ -0,0 +1,21 @@ +language: java + +dist: trusty + +jdk: + - openjdk17 + +sudo: true + +before_install: + - chmod +x mvnw + +script: + - chmod +x ./.ci/unit-tests.sh + - ./.ci/unit-tests.sh + +codecov: + token: 205491e7-89df-41f4-a231-abf4cc09e3f8 + +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file