-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup auto deploy to pagefront on CI success (#154)
Closes #89. Also removes the build matrix from travis since the only way to deploy would to deploy after each individual job succeeds. That would result in 5 deploys at the exact same time each build.
- Loading branch information
Showing
5 changed files
with
17 additions
and
20 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 |
---|---|---|
|
@@ -15,3 +15,5 @@ | |
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
|
||
.env.deploy.* |
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,37 +1,23 @@ | ||
--- | ||
language: node_js | ||
node_js: | ||
- "4" | ||
|
||
- '4' | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
env: | ||
- EMBER_TRY_SCENARIO=default | ||
- EMBER_TRY_SCENARIO=ember-release | ||
- EMBER_TRY_SCENARIO=ember-beta | ||
- EMBER_TRY_SCENARIO=ember-canary | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- env: EMBER_TRY_SCENARIO=ember-canary | ||
|
||
before_install: | ||
- npm config set spin false | ||
- npm install -g bower | ||
- bower --version | ||
- npm install phantomjs-prebuilt | ||
- phantomjs --version | ||
|
||
install: | ||
- npm install | ||
- bower install | ||
|
||
after_success: | ||
test $TRAVIS_BRANCH = "master" && ember deploy production | ||
script: | ||
# Usually, it's ok to finish the test scenario without reverting | ||
# to the addon's original dependency state, skipping "cleanup". | ||
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup | ||
- ember try:each --skip-cleanup |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = function(deployTarget) { | ||
return { | ||
pagefront: { | ||
app: 'emberx-select', | ||
key: process.env.PAGEFRONT_KEY | ||
} | ||
}; | ||
}; |
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
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