Skip to content

Commit

Permalink
[ISSUE apache#3654] Polish travis.yml to run integration tests (apach…
Browse files Browse the repository at this point in the history
…e#3655)

* 1.Make travis to run integration tests
2.Fix running testSynSendNullMessage failed

* Remove run 'mvn clean install -Pit-test' after success

* Change package to install when running UT
  • Loading branch information
RongtongJin committed Dec 17, 2021
1 parent 70bbfae commit 0de4af0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ before_script:
script:
- mvn verify -DskipTests
- travis_retry mvn -B clean apache-rat:check
- travis_retry mvn -B package jacoco:report coveralls:report
- travis_retry mvn -B install jacoco:report coveralls:report
- travis_retry mvn -B clean install -pl test -Pit-test

after_success:
- mvn clean install -Pit-test
- mvn sonar:sonar -Psonar-apache
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void testProducerSmoke() {
assertThat(sendResult.getSendStatus()).isEqualTo(SendStatus.SEND_OK);
}

@Test(expected = org.apache.rocketmq.client.exception.MQClientException.class)
@Test(expected = java.lang.NullPointerException.class)
public void testSynSendNullMessage() throws Exception {
producer.send((Message) null);
}
Expand Down

0 comments on commit 0de4af0

Please sign in to comment.