diff options
author | Vitalii Diravka <vitalii.diravka@gmail.com> | 2019-03-03 22:55:25 +0200 |
---|---|---|
committer | karthik <kmanivannan@maprtech.com> | 2019-03-08 13:49:40 -0800 |
commit | 4a79e2a52ad2dac64ba001645da1442f0b06fd62 (patch) | |
tree | 6257289244d5ce5d6973870a8e8a03649b517345 | |
parent | 79c7ea559ed7adc0074438e6c0eb5aa2340419a6 (diff) |
DRILL-6846: Add CircleCI Test Summary
closes #1678
- added CircleCI Test Summary
- maven-surefire-plugin version udpate
- license checkstyle goal is added to the TravisCI protobuf phase
-rw-r--r-- | .circleci/config.yml | 53 | ||||
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | pom.xml | 4 |
3 files changed, 47 insertions, 12 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index bc8eb733d..31cb2cc67 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,13 +48,21 @@ jobs: name: Drill project build # TODO: 2. Optimizing Maven Builds on CircleCI - https://circleci.com/blog/optimizing-maven-builds-on-circleci/ # TODO: 3. Resolving memory issues without "SlowTest" and "UnlikelyTest" excludedGroups in the build - command: - mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" + command: > + mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 + -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" --batch-mode + - run: + name: Save test results + command: | + mkdir -p ~/test-results/junit/ + find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \; + when: always + - store_test_results: + path: ~/test-results - save_cache: paths: - ~/.m2 key: m2-{{ checksum "pom.xml" }} - build_jdk9: machine: enabled: true @@ -91,8 +99,17 @@ jobs: sudo apt-get install libaio1 libaio-dev - run: name: Drill project build - command: - mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" + command: > + mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 + -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" --batch-mode + - run: + name: Save test results + command: | + mkdir -p ~/test-results/junit/ + find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \; + when: always + - store_test_results: + path: ~/test-results - save_cache: paths: - ~/.m2 @@ -134,8 +151,17 @@ jobs: sudo apt-get install libaio1 libaio-dev - run: name: Drill project build - command: - mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" + command: > + mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 + -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" --batch-mode + - run: + name: Save test results + command: | + mkdir -p ~/test-results/junit/ + find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \; + when: always + - store_test_results: + path: ~/test-results - save_cache: paths: - ~/.m2 @@ -179,8 +205,17 @@ jobs: name: Drill project build # Set forkCount to 1 since tests use more memory and memory limitations for CircleCI is reached # for default value of forkCount. - command: - mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DforkCount=1 -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" + command: > + mvn install -Drat.skip=false -Dlicense.skip=false -DmemoryMb=2560 -DdirectMemoryMb=4608 -DforkCount=1 + -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest" --batch-mode + - run: + name: Save test results + command: | + mkdir -p ~/test-results/junit/ + find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \; + when: always + - store_test_results: + path: ~/test-results - save_cache: paths: - ~/.m2 diff --git a/.travis.yml b/.travis.yml index e85b14088..b8db94d0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,7 +53,7 @@ install: if [ $PHASE = "tests" ]; then \ mvn install --batch-mode -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest,org.apache.drill.categories.SecurityTest" -DforkCount=1 -DmemoryMb=2560 -DdirectMemoryMb=4608 -Ptravis; \ elif [ $PHASE = "build_checkstyle_protobuf" ]; then \ - MAVEN_OPTS="-Xms1G -Xmx1G" mvn install --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true && \ + MAVEN_OPTS="-Xms1G -Xmx1G" mvn install -Drat.skip=false -Dlicense.skip=false --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true && \ pushd protocol && mvn process-sources -P proto-compile && popd && \ mkdir contrib/native/client/build && pushd contrib/native/client/build && cmake -G "Unix Makefiles" .. && make cpProtobufs && popd; \ fi @@ -747,7 +747,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>3.0.0-M2</version> + <version>3.0.0-M3</version> <executions> <execution> <id>default-test</id> @@ -759,7 +759,7 @@ <dependency> <groupId>org.apache.maven.surefire</groupId> <artifactId>surefire-junit47</artifactId> - <version>3.0.0-M2</version> + <version>3.0.0-M3</version> </dependency> </dependencies> <configuration> |