0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Update .travis.yml - preparation for renovate

- attempt to do a regression build for cron OR renovate
- we want to run all tests when dependencies are updated, and on nightlies
This commit is contained in:
Hannah Wolfe 2019-03-11 14:31:55 +00:00 committed by GitHub
parent 23215e7d74
commit ce57718b93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,10 @@ matrix:
- node_js: "10"
env: TEST_SUITE=lint
fast_finish: true
branches:
except:
- /^renovate\/.+$/
before_install:
- if [ $DB == "mysql" ]; then mysql -e 'create database ghost_testing'; fi
@ -37,7 +41,7 @@ install:
- if [ "$DB" == "sqlite3" ]; then yarn add --force sqlite3; fi # fix sqlite caching issues
script: |
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ] && [ "${TEST_SUITE}" != "lint" ]; then
if [[ ( "$TRAVIS_PULL_REQUEST_BRANCH" =~ ^renovate || "$TRAVIS_EVENT_TYPE" == "cron" ) && "$TEST_SUITE" != "lint" ]]; then
yarn test:regression
else
yarn test