Skip to content

Commit

Permalink
Fix travis publish stage (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Trujillo committed Jun 5, 2018
1 parent e34287a commit 4a75dce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ node_js:
addons:
chrome: stable

stages:
- Build/Test
- name: Publish
if: (NOT type IN (pull_request)) AND (branch = master)

jobs:
include:
- stage: Build/Test
env: "PHASE=unit"
- env: "PHASE=lint"
- env: "PHASE=build"
- stage: Publish
if: branch = master AND type IN (push)
env: "PHASE=publish"
deploy:
provider: pages
Expand Down
4 changes: 4 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ set -e
cd $(dirname $0)/..

# Build project
echo "Building app"
npm run build

echo "Generating code coverage"
npm run test:unit

# Publish code coverage to Coveralls
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

Expand Down

0 comments on commit 4a75dce

Please sign in to comment.