Skip to content

Commit

Permalink
fix: replace travis-deploy-once with travis-ci stage (#133)
Browse files Browse the repository at this point in the history
Fixes #132
  • Loading branch information
mike-north authored Dec 5, 2018
1 parent 61b9d37 commit 1d136c7
Show file tree
Hide file tree
Showing 3 changed files with 600 additions and 535 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ env:
# See https://git.io/vdao3 for details.
- JOBS=1

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

jobs:
fail_fast: true
allow_failures:
Expand Down Expand Up @@ -47,6 +53,10 @@ jobs:
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery

- stage: 'Deploy'
name: 'Publish to NPM'
script: yarn semantic-release

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
Expand All @@ -55,4 +65,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
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"build": "ember build",
"start": "ember server",
"test": "ember try:each",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
"repository": "https://github.com/mike-north/ember-add-to-homescreen.git",
Expand Down Expand Up @@ -70,8 +69,7 @@
"dependencies": {
"add-to-homescreen": "^3.2.6",
"ember-cli-babel": "^7.1.3",
"ember-cli-htmlbars": "^3.0.1",
"travis-deploy-once": "^5.0.9"
"ember-cli-htmlbars": "^3.0.1"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down
Loading

0 comments on commit 1d136c7

Please sign in to comment.