Skip to content

Commit

Permalink
Only bootstrap on tests and deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanseddon committed Dec 7, 2018
1 parent acefe11 commit 99734f3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ cache:
directories:
- node-modules

install: yarn --frozen-lockfile
install:
- echo "Bypass default install behaviour"

jobs:
include:
- stage: test
name: "Linting"
script: yarn lint
- script: yarn format
env: TEST_GROUP=lint
script: yarn lint && echo $TEST_GROUP
- script: yarn format && echo $TEST_GROUP
env: TEST_GROUP=format
name: "Formatting"
- script: yarn test:all --coverage --runInBand
- script: yarn --frozen-lockfile && yarn test:all --coverage --runInBand
name: "Unit Tests"
- stage: deploy
before_deploy:
- export NODE_DEBUG=gh-pages
- npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
- yarn --frozen-lockfile
deploy:
- provider: script
script: utils/travis/publish-gh-pages.sh
Expand Down

0 comments on commit 99734f3

Please sign in to comment.