Skip to content

Commit

Permalink
Merge pull request #204 from ember-cli/kg-travis-updates
Browse files Browse the repository at this point in the history
Update to Travis Stages & Deploy from Travis
  • Loading branch information
kategengler authored Aug 29, 2018
2 parents 39ede7d + b43825c commit 28ad8a4
Showing 1 changed file with 52 additions and 34 deletions.
86 changes: 52 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,67 @@
---
language: node_js
node_js:
- "4"
- "7"
- "8"
# - "6" - The test that includes coverage runs with 6
- '10'

sudo: false
dist: trusty

addons:
chrome: stable
dist: trusty

addons:
chrome: stable

env:
- NPM_SCRIPT=node-test

matrix:
fast_finish: true
include:
- node_js: "6"
env: NPM_SCRIPT=client-test
- node_js: "6"
env: NPM_SCRIPT=lint
- node_js: "6"
env: NPM_SCRIPT=node-test-with-coverage
- node_js: "4"
env: NPM_SCRIPT=smoke-test
- node_js: "6"
env: NPM_SCRIPT=smoke-test
- node_js: "8"
env: NPM_SCRIPT=smoke-test
cache:
yarn: true

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn --version
- npm config set spin false
- npm install -g bower
- bower --version
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn --version
- npm install -g bower
- bower --version

install:
- yarn install --no-lockfile
- yarn install

branches:
only:
- master
# npm version tags
- /^v\d+\.\d+\.\d+/

jobs:
fail_fast: true
include:
- stage: tests
name: Node 10 With Coverage
script:
- yarn lint
- yarn node-test-with-coverage
- stage: additional tests
name: floating dependencies
install: yarn install --no-lockfile
- name: All Commands Smoke Test
script:
- yarn client-test
- name: Node 6 Smoke Test
node_js: '6'
script:
- yarn smoke-test
- name: Node 8 Smoke Test
node_js: '8'
script:
- yarn smoke-test
- stage: deploy
if: tag IS present
node_js: "10"
install: yarn global add auto-dist-tag
script: auto-dist-tag --write
deploy:
provider: npm
email: [email protected]
api_key:
secure: MvdwFee93YPXIBBaPenex2kxABycu41NC+BrvhdJyGiPmDRRLxJbIZM0q4ys3mgpgAbHUIjzuA+O37ex4Pzw6Fr791sECWkv4aDgvElEzo7GmobxduLQnWrQazgAhDj5QTYMZvXgGWVVKdUrSOl3WexxRxH3LLPbc+RJoFSUv10=
on:
tags: true
repo: ember-cli/ember-try
script:
- npm run-script $NPM_SCRIPT
- yarn node-test

0 comments on commit 28ad8a4

Please sign in to comment.