2019-03-11 16:46:48 +00:00
|
|
|
dist: xenial
|
2013-05-12 21:15:35 +01:00
|
|
|
language: node_js
|
2019-03-11 16:46:48 +00:00
|
|
|
# When changing node version also update it on line 21
|
2013-05-12 21:15:35 +01:00
|
|
|
node_js:
|
2018-10-30 09:45:51 +01:00
|
|
|
- "10"
|
2017-10-26 12:37:58 +02:00
|
|
|
- "8"
|
2016-07-15 19:36:15 +01:00
|
|
|
- "6"
|
2017-01-23 10:32:49 -05:00
|
|
|
|
2019-03-11 16:46:48 +00:00
|
|
|
cache: yarn
|
2017-01-23 10:32:49 -05:00
|
|
|
|
2019-03-11 16:46:48 +00:00
|
|
|
services:
|
|
|
|
- mysql
|
2017-01-23 10:32:49 -05:00
|
|
|
|
2013-10-29 20:54:37 +00:00
|
|
|
env:
|
2015-01-07 20:44:14 +00:00
|
|
|
matrix:
|
|
|
|
- DB=sqlite3 NODE_ENV=testing
|
|
|
|
- DB=mysql NODE_ENV=testing-mysql
|
2017-01-23 10:32:49 -05:00
|
|
|
|
2015-11-13 11:54:50 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-01-31 12:25:04 +01:00
|
|
|
- node_js: "10"
|
2015-11-13 11:54:50 +00:00
|
|
|
env: TEST_SUITE=lint
|
2016-07-15 19:36:15 +01:00
|
|
|
fast_finish: true
|
2019-03-11 15:43:47 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /^renovate\/.+$/
|
2017-01-23 10:32:49 -05:00
|
|
|
|
|
|
|
install:
|
|
|
|
- yarn
|
2019-03-11 16:46:48 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- if [ $DB == "mysql" ]; then mysql -e 'create database ghost_testing'; fi
|
2017-01-24 09:36:21 -06:00
|
|
|
- if [ "$DB" == "sqlite3" ]; then yarn add --force sqlite3; fi # fix sqlite caching issues
|
2017-01-23 10:32:49 -05:00
|
|
|
|
2019-01-22 18:31:07 +01:00
|
|
|
script: |
|
2019-03-11 16:39:17 +00:00
|
|
|
if [ "$TEST_SUITE" == "lint" ]; then
|
2019-03-11 15:43:47 +00:00
|
|
|
yarn lint
|
|
|
|
elif [[ "$TRAVIS_PULL_REQUEST_BRANCH" =~ ^renovate || "$TRAVIS_EVENT_TYPE" == "cron" ]]; then
|
|
|
|
yarn ci:regression
|
2019-01-22 18:31:07 +01:00
|
|
|
else
|
2019-03-11 15:43:47 +00:00
|
|
|
yarn ci
|
2019-01-22 18:31:07 +01:00
|
|
|
fi
|
|
|
|
|
2019-03-11 16:30:25 +00:00
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
secure: iqURdUniayDtpj8twQIUi027jkFDMfoqyYv6rmmF7Nb1Y+XoLeQbUNv1EQEoGG+N7n9FnRXQe6TawyjCk+6qBQJoEI2O4xSpvtnC81nnX5EKbNVgT+tfBXH/bUaLtgY3Z3NfoeCmwR3fK3wOhgN9m3Il5YgXx7KJFAXxjnYrKUo=
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
on_pull_requests: false
|