Skip to content

Commit

Permalink
fix(dx): Removed Node v4 from Travis CI and added auto building of do…
Browse files Browse the repository at this point in the history
…cumentation
  • Loading branch information
Daniel James committed Feb 14, 2017
1 parent 88166af commit a508eae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,21 @@ notifications:
node_js:
- '7'
- '6'
- '4'
before_script:
- npm prune
after_success:
- npm run semantic-release
after_success: |
if [ -n "$GH_TOKEN" ]; then
cd "$TRAVIS_BUILD_DIR"
npm run build:docs
cd .build/docs
git init
git checkout -b gh-pages
git add .
git -c user.name='travis' -c user.email='travis' commit -m init
git push -f -q https://thzinc:[email protected]/syncromatics/syncromatics-track-api gh-pages &2>/dev/null
cd "$TRAVIS_BUILD_DIR"
fi
npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"serve:docs": "documentation serve -f html -w src/index.js",
"build:docs": "documentation build -f html -o build/docs src/index.js",
"build:docs": "documentation build -f html -o .build/docs src/index.js",
"test:local": "karma start",
"test": "karma start --single-run --fail-on-empty-test-suite",
"prepublish": "webpack",
Expand Down

0 comments on commit a508eae

Please sign in to comment.