Skip to content

Commit

Permalink
chore: replace travis-deploy-once with travis-ci stage (#136)
Browse files Browse the repository at this point in the history
Fixes #133
  • Loading branch information
mike-north committed Dec 5, 2018
1 parent da7697f commit 497086f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
16 changes: 15 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ env:
# See https://git.io/vdao3 for details.
- JOBS=1

stages:
- 'Tests'
- 'Additional Tests'
- 'Canary Tests'
- name: 'Deploy'
if: branch = master AND type = push

jobs:
fail_fast: true
allow_failures:
Expand Down Expand Up @@ -48,11 +55,18 @@ jobs:
- env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery

- stage: 'Canary Tests'
script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
env: EMBER_TRY_SCENARIO=ember-canary

- stage: 'Deploy'
name: 'Publish to npm'
install:
- yarn install --non-interactive
script: yarn semantic-release

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
Expand All @@ -61,4 +75,4 @@ install:
- yarn install --no-lockfile --non-interactive

script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO && yarn travis-deploy-once "yarn semantic-release"
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"lint:js": "eslint .",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each"
"test:all": "ember try:each",
"semantic-release": "semantic-release"
},
"engines": {
"node": "6.* || 8.* || >= 10.*"
Expand Down Expand Up @@ -47,8 +48,7 @@
"husky": "1.2.0",
"loader.js": "4.7.0",
"qunit-dom": "0.8.1",
"semantic-release": "15.12.3",
"travis-deploy-once": "5.0.9"
"semantic-release": "15.12.3"
},
"keywords": [
"ember-addon"
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11338,7 +11338,7 @@ traverse@~0.6.6:
resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137"
integrity sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=

travis-deploy-once@5.0.9, travis-deploy-once@^5.0.9:
travis-deploy-once@^5.0.9:
version "5.0.9"
resolved "https://registry.yarnpkg.com/travis-deploy-once/-/travis-deploy-once-5.0.9.tgz#c5a2f639e17d8fd542f66d25ade126179d5e8acf"
integrity sha512-cyHFErzq0HTEGY29RAq1clqFdt/IkCrlcOmyM1cGoGnEyukrrFi1fpy6JH3Mlf+88XsFwvluqKVWzj2bdz3k8A==
Expand Down

0 comments on commit 497086f

Please sign in to comment.