-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* npm deploy added to `.travis.yml` * S3 Upload util removed * Dependencies updated
- Loading branch information
1 parent
443141d
commit 6b9546d
Showing
11 changed files
with
83 additions
and
72 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,10 +1,37 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- v6 | ||
- v5 | ||
- v4 | ||
- 6 | ||
|
||
sudo: false | ||
|
||
script: "npm run test" | ||
cache: | ||
directories: | ||
- node_modules | ||
|
||
# Only build pushes to master and release branches (prevent duplicate builds) | ||
branches: | ||
only: | ||
- master | ||
- release | ||
|
||
script: | ||
- npm run test | ||
|
||
addons: | ||
code_climate: | ||
repo_token: $CODE_CLIMATE | ||
|
||
after_success: | ||
- npm install -g codeclimate-test-reporter | ||
- codeclimate-test-reporter < coverage/lcov.info | ||
- npm run codecov | ||
|
||
# Publish To NPM if push to release branch | ||
deploy: | ||
skip_cleanup: true | ||
provider: npm | ||
email: $NPM_EMAIL | ||
api_key: $NPM_TOKEN | ||
on: | ||
branch: release |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
{ | ||
"presets": ["es2015"], | ||
"plugins": [ | ||
|
This file was deleted.
Oops, something went wrong.
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,7 +1,12 @@ | ||
# Dependency directory | ||
node_modules | ||
**/.DS_Store | ||
coverage | ||
docs | ||
examples/**/node_modules | ||
dist | ||
coverage | ||
_book | ||
es | ||
lib | ||
# Logs | ||
*.log | ||
|
||
.DS_Store |
File renamed without changes.
File renamed without changes.
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,31 +1,40 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "4" | ||
- "5" | ||
- "6" | ||
|
||
branches: | ||
only: | ||
- master | ||
- release | ||
|
||
sudo: false | ||
script: "npm run test:cov" | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
# before_install: | ||
# - npm install # Install peer deps | ||
|
||
script: | ||
- npm run test:cov | ||
- npm run build | ||
|
||
# Publish To NPM if push to release branch | ||
deploy: | ||
skip_cleanup: true | ||
provider: npm | ||
email: $NPM_EMAIL | ||
api_key: $NPM_TOKEN | ||
on: | ||
branch: release | ||
<% if (answers.codeClimate) { %> | ||
addons: | ||
code_climate: | ||
repo_token: $CODE_CLIMATE | ||
|
||
after_success: | ||
- npm install -g codeclimate-test-reporter | ||
- codeclimate-test-reporter < coverage/lcov.info | ||
<% } %> | ||
<% if (answers.deployTo === 's3') { %> | ||
deploy: | ||
skip_cleanup: true | ||
provider: s3 | ||
access_key_id: $AWS_KEY | ||
secret_access_key: $AWS_SECRET | ||
bucket: $S3_BUCKET | ||
acl: public_read | ||
local_dir: dist | ||
upload-dir: $S3_DIR | ||
on: | ||
branch: master | ||
condition: $AWS_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