authorjapps / zerocode-hello-world

Zerocode YAML and JSON based declarative steps hello world rest api testing example - soap, database
https://github.com/authorjapps/zerocode
MIT License
18 stars 40 forks source link

Travis CI for integration tests #8

Closed santhoshTpixler closed 5 years ago

santhoshTpixler commented 5 years ago

There is a need for running integration tests in CI to verify our examples are not broken.

santhoshTpixler commented 5 years ago

Completed. But Github API's are causing issues due to throttling. Need alternate solution. @authorjapps image

santhoshTpixler commented 5 years ago

Any ways local maven tests are passing successfully, except the intentionally failed test for ignoreStepFailue(Skipped to pass the CI build). Any suggestions on this?

authorjapps commented 5 years ago

Yes, GitHub apis give throttling issues.

What we can do for now to get the build green state is

santhoshTpixler commented 5 years ago

Looks like a lot of tests are dependent on GitHub API. Suggest some solution.

Completed. But Github API's are causing issues due to throttling. Need alternate solution. @authorjapps image

santhoshTpixler commented 5 years ago

@authorjapps kindly enable the Travis and add the build status badge in the readme.

authorjapps commented 5 years ago

The Travis ci build is somehow triggering Gradle build.

Travis build link: https://travis-ci.org/authorjapps/zerocode-hello-world

Please check, if this can be fixed to pick maven command which is in the yml file.

0.65s$ git clone --depth=50 --branch=master https://github.com/authorjapps/zerocode-hello-world.git authorjapps/zerocode-hello-world
Cloning into 'authorjapps/zerocode-hello-world'...
remote: Enumerating objects: 944, done.
remote: Counting objects: 100% (944/944), done.
remote: Compressing objects: 100% (470/470), done.
remote: Total 944 (delta 336), reused 871 (delta 271), pack-reused 0
Receiving objects: 100% (944/944), 793.29 KiB | 7.41 MiB/s, done.
Resolving deltas: 100% (336/336), done.
$ cd authorjapps/zerocode-hello-world
$ git checkout -qf 54f94bf95d7f6f91125ce465c97838cbbcc31d5b
$ export TERM=dumb
cache.1
Setting up build cache
$ export CASHER_DIR=${TRAVIS_HOME}/.casher
0.16s$ Installing caching utilities
0.00s1.19sattempting to download cache archive
fetching master/cache-linux-trusty-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.tgz
could not download cache
0.00s1.07sadding /home/travis/.m2 to cache
$ java -Xmx32m -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
$ javac -J-Xmx32m -version
javac 1.8.0_151
3.23s$ ./gradlew assemble
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed. Retrying, 2 of 3.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed. Retrying, 3 of 3.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed 3 times.
The command "./gradlew assemble" failed and exited with 1 during .
Your build has been stopped.