Skip to content

Commit

Permalink
💤 chore(travis): conditional build
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosenstein committed Nov 13, 2018
1 parent f378a49 commit 8206fc3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 22 deletions.
49 changes: 28 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
language: node_js
node_js:
- "8"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
- export PATH=$HOME/.yarn/bin:$PATH
node_js: '10'
cache: yarn
install: yarn

script:
- yarn run travis
stages:
- Test
- Docs

after_success:
- cat ./coverage/lcov.info | ./node_modules/codecov/bin/codecov
jobs:
include:
- stage: Test
name: 'Running Tests'
script: yarn run test:coverage
after_success: cat ./coverage/lcov.info | ./node_modules/codecov/bin/codecov

before_deploy:
- cd docs
- yarn install
- yarn run build
- cd ..
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ./docs/build
on:
branch: master
- stage: Docs
name: 'Building Docs'
if: branch = master
script: yarn run build
before_deploy:
- cd docs
- yarn install
- yarn run build
- cd ..
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ./docs/build
target_branch: gh-pages
on:
branch: master
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@roseys/futils",
"version": "1.0.0",
"version": "1.0.1",
"modulename": "futils",
"description": "My JavaScript utils library",
"main": "lib/index.js",
Expand Down

0 comments on commit 8206fc3

Please sign in to comment.