snowch / biginsight-examples

Example projects to help you quickly get started with BigInsights
Apache License 2.0
7 stars 4 forks source link

Travis improvements #72

Open snowch opened 8 years ago

snowch commented 8 years ago

Some potential enhancements:

snowch commented 8 years ago

The second improvement has been implemented. See the TESTS_TO_SKIP variable in .travis.yml.

pregazzoni commented 8 years ago

BTW fix issue with TEST_SKIP not being set when running outside of TRAVIS.

I also added code to disable/enable tasks if properties are not set. This is useful if you did not set all the properties e.g for cloudant or elastic_search. The project still runs but won't fail.

You will see in the build output following.

:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:SetupLibs
:ExamplePull SKIPPED

BUILD SUCCESSFUL

Total time: 1.131 secs

Ideally it would be nice to even show that test was skipped from top build.

Test skipped  ElasticsearchIntegrationWithSpark::ExamplePull
snowch commented 8 years ago

thanks @pregazzoni