Skip to content

Commit 3571490

Browse files
author
Benjamin Wilson Friedman
authored
Travis CI Cache Cleanup Fix (#339)
* Shutdowns the server and clears internal pid file in 'after_script' * Moved server cleanup into 'script', as it appears cache uploading occurs before 'after_script'
1 parent f219bfa commit 3571490

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ php:
88
- '7.1'
99
# - hhvm # on Trusty only
1010
# - nightly
11+
1112
cache:
1213
directories:
1314
- node_modules
@@ -27,18 +28,21 @@ install:
2728
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]]; then composer require jms/serializer; fi
2829
- composer install
2930
- npm install
31+
3032
before_script:
31-
- npm stop # clean up cached PID file from prior parse-server
3233
- npm start 1>&2
3334
- sleep 3
3435
- npm run lint
36+
3537
script:
3638
- if [[ ${STREAM_CLIENT_ONLY} == 1 ]]; then npm run test-stream:coverage; fi
3739
- if [[ ! ${STREAM_CLIENT_ONLY} ]]; then npm run test:coverage; fi
3840
- npm run document-check && if [[ `cat "output/checkstyle.xml" | grep "<error "` != "" ]]; then exit 1; fi
41+
- npm stop # shutdown server & clean up PID file
3942

4043
before_deploy:
4144
- npm run document
45+
4246
deploy:
4347
provider: pages
4448
skip_cleanup: true
@@ -47,6 +51,7 @@ deploy:
4751
on:
4852
branch: master
4953
php: '7.1'
54+
5055
after_success:
5156
- bash <(curl -s https://codecov.io/bash)
5257

0 commit comments

Comments
 (0)