Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
58 additions
and
60 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
/lib | ||
|
||
# Common for .gitignore and .npmignore | ||
CHANGELOG-Generated.md | ||
src-cov/ | ||
lcov/ | ||
site/ | ||
|
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,25 +1,33 @@ | ||
sudo: "required" | ||
dist: "trusty" | ||
language: "node_js" | ||
env: | ||
global: | ||
- secure: "io+3qwINOL+43e0qNPOr0oOEoMYUXDJroSGMwVXC4jgPW3YUe10lPRMCr39iEHg9iIOUj30xtqN8nqDdrljVIT1nM4pcrnrCcMegKXZ5dzQYFW0CW3DN06lLHt7K1Kdcah+3fXCSWPwIahns0R/SC/QRedZcOgDhD3KG7gBeoag=" | ||
matrix: | ||
- "DRAFTER=JS" | ||
- "DRAFTER=CPP" | ||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- "4" | ||
- "6" | ||
env: | ||
global: | ||
# GH_TOKEN and NPM_TOKEN encrypted by 'travis encrypt' utility | ||
- secure: "gO5DrzOfF+l3hjvs0kLYUrGEnYVwrDy7NTGNrtPmLrrfdS6qmUNbTVggjra2aDM82lZYo0slZaOtjedSd8GMNE41egHAq0aGMJfhNrXjr+ROOIkc1BRUn3vTp5lk/n4eU7bLozoiriBphmKHHwZqekSn2orvIpAtoWL/JPVzheY=" | ||
matrix: | ||
- "DRAFTER=JS" | ||
- "DRAFTER=CPP" | ||
cache: | ||
directories: | ||
- "node_modules" | ||
before_install: | ||
- "npm -g install npm@latest" | ||
- "gem install travis" | ||
- "curl -Lo travis_after_all.py https://raw.githubusercontent.com/dmakhno/travis_after_all/master/travis_after_all.py" | ||
before_script: | ||
- "npm run lint" | ||
script: | ||
- "if [[ $DRAFTER = JS ]]; then find ./node_modules -name protagonist -type d -exec rm -rf {} +; fi" | ||
- "npm test" | ||
- "if [[ $DRAFTER = JS ]]; then npm run test:hooks-handlers; fi" | ||
after_success: | ||
after_success: # travis_after_all.py is needed due to travis-ci/travis-ci#1548 & travis-ci/travis-ci#929 | ||
- "npm run coveralls" | ||
- "python travis_after_all.py" | ||
- "export $(cat .to_export_back)" | ||
- "npm run semantic-release || true" |
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
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,20 @@ | ||
#!/bin/sh | ||
# Runs tests. All arguments given to this script will be passed to mocha. | ||
|
||
|
||
SEMANTIC_RELEASE=./node_modules/.bin/semantic-release | ||
|
||
|
||
add_stable_dist_tag() { | ||
PACKAGE_NAME=$(coffee -e 'console.log(require("./package.json").name)') | ||
PACKAGE_VERSION=$(coffee -e 'console.log(require("./package.json").version)') | ||
|
||
npm dist-tag add "$PACKAGE_NAME@$PACKAGE_VERSION" stable | ||
return $? | ||
} | ||
|
||
|
||
$SEMANTIC_RELEASE pre && \ | ||
npm publish && \ | ||
add_stable_dist_tag && \ | ||
$SEMANTIC_RELEASE post |
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 was deleted.
Oops, something went wrong.