Ghost/.travis.yml
Daniel Lockyer 93dd8b3dc3 Updated Travis configuration to remove cron references
no issue

- the cron is no longer used as regression tests run on master
2020-02-27 09:36:06 +00:00

28 lines
537 B
YAML

dist: xenial
language: node_js
node_js:
- '12'
- '10'
cache: yarn
services:
- mysql
branches:
only:
- master
- 2.x
env:
matrix:
- DB=sqlite3 NODE_ENV=testing
- DB=mysql NODE_ENV=testing-mysql
install:
- yarn
before_script:
- if [ $DB == "mysql" ]; then mysql -e 'create database ghost_testing'; fi
- if [ "$DB" == "sqlite3" ]; then yarn add --force sqlite3; fi
script: |
if [[ "$TRAVIS_PULL_REQUEST_BRANCH" =~ ^renovate || "$TRAVIS_PULL_REQUEST" == "false" ]]; then
grunt test-all --verbose
else
yarn ci
fi