-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #204 from ember-cli/kg-travis-updates
Update to Travis Stages & Deploy from Travis
- Loading branch information
Showing
1 changed file
with
52 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |