|
@@ -48,6 +48,10 @@ matrix:
|
|
|
env: COMPANION=true
|
|
|
addons:
|
|
|
apt: *APT
|
|
|
+ - node_js: 'stable'
|
|
|
+ env: COMPANION_NODE6=true
|
|
|
+ addons:
|
|
|
+ apt: *APT
|
|
|
# Build the website when things are merged to master
|
|
|
- node_js: 10
|
|
|
env: WEBSITE=true
|
|
@@ -62,7 +66,8 @@ script:
|
|
|
- 'if [ -n "${LINT-}" ]; then npm run lint; fi'
|
|
|
- 'if [ -n "${LINT-}" ]; then npm run test:type; fi'
|
|
|
- 'if [ -n "${UNIT-}" ]; then npm run test:unit; fi'
|
|
|
-- 'if [ -n "${COMPANION-}" ]; then npm run test:companion; fi'
|
|
|
+- 'if [ -n "${COMPANION_NODE6-}" ]; then nvm install 6.0.0 && nvm use 6.0.0; fi'
|
|
|
+- 'if [ -n "${COMPANION-}" ] || [ -n "${COMPANION_NODE6-}" ]; then npm run test:companion; fi'
|
|
|
- 'if [ -n "${ENDTOEND-}" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test:endtoend; fi'
|
|
|
- 'if [ -n "${BUILD-}" ]; then npm run build; fi'
|
|
|
# Publish release commits to CDN after a `BUILD=true` run, because we have all the files now
|