From 21a4ce021a27698ef47f7bd52b7586518d047f05 Mon Sep 17 00:00:00 2001 From: Benjamin Friedman Date: Fri, 14 Jul 2017 17:52:13 -0700 Subject: [PATCH 1/2] Shutdowns the server and clears internal pid file in 'after_script' --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 800122f6..8a660917 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ php: - '7.1' # - hhvm # on Trusty only # - nightly + cache: directories: - node_modules @@ -27,18 +28,23 @@ install: - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then composer require jms/serializer; fi - composer install - npm install + before_script: - - npm stop # clean up cached PID file from prior parse-server - npm start 1>&2 - sleep 3 - npm run lint + script: - if [[ ${STREAM_CLIENT_ONLY} == 1 ]]; then npm run test-stream:coverage; fi - if [[ ! ${STREAM_CLIENT_ONLY} ]]; then npm run test:coverage; fi - npm run document-check && if [[ `cat "output/checkstyle.xml" | grep " Date: Fri, 14 Jul 2017 17:59:48 -0700 Subject: [PATCH 2/2] Moved server cleanup into 'script', as it appears cache uploading occurs before 'after_script' --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a660917..507e536d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,8 +38,6 @@ script: - if [[ ${STREAM_CLIENT_ONLY} == 1 ]]; then npm run test-stream:coverage; fi - if [[ ! ${STREAM_CLIENT_ONLY} ]]; then npm run test:coverage; fi - npm run document-check && if [[ `cat "output/checkstyle.xml" | grep "