.travis.yml
---
language: node_js
node_js:
- "stable"
sudo: required
dist: trusty
addons:
chrome: stable
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
addons:
chrome: stable
cache:
yarn: true
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn install --no-lockfile --non-interactive
script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
stages:
- basic test
- additional tests
- name: 'Deploy'
if: branch = master AND type = push
jobs:
fail_fast: true
include:
- stage: basic test
name: fixed dependencies
script: ember test
- name: floating dependencies
install: yarn install --non-interactive
script: ember test
- stage: additional tests
env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-lts-2.12
- env: EMBER_TRY_SCENARIO=ember-lts-2.16
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
- stage: 'Deploy'
name: 'Publish to npm'
install:
- yarn install --non-interactive
script: yarn semantic-release