Skip to content

Commit

Permalink
Start server during CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsreekanti committed Mar 15, 2017
1 parent 96d5278 commit a1f6148
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/test_master.sh
Expand Up @@ -31,5 +31,12 @@ cd ground-core/scripts/cassandra && python2.7 cassandra_setup.py test && cd ../.
# run tests
mvn clean test

# build the server and make sure it is still running after 10 seconds
mvn clean package
java -jar ground-core/target/ground-core-0.1-SNAPSHOT.jar server ground-core/conf/config.yml &
SERVER_PID=$!
sleep 10
kill -0 $SERVER_PID

# generate the test coverage report and send it to Coveralls
mvn clean test jacoco:report coveralls:report -DrepoToken=$COVERALLS_TOKEN
7 changes: 7 additions & 0 deletions ci/test_pr.sh
Expand Up @@ -23,5 +23,12 @@ cd /tmp/ground/
cd ground-core/scripts/postgres && python2.7 postgres_setup.py test test && cd ../../..
cd ground-core/scripts/cassandra && python2.7 cassandra_setup.py test && cd ../../..

# build the server and make sure it is still running after 10 seconds
mvn clean package
java -jar ground-core/target/ground-core-0.1-SNAPSHOT.jar server ground-core/conf/config.yml &
SERVER_PID=$!
sleep 10
kill -0 $SERVER_PID

# run tests
mvn clean test

0 comments on commit a1f6148

Please sign in to comment.