Skip to content

Commit

Permalink
ci(travis): Fixing up the Travis Build
Browse files Browse the repository at this point in the history
Removing stages (unnecessary) and just using the npm scripts that I've setup

re #2
  • Loading branch information
srepollock committed Feb 15, 2019
1 parent 53a6308 commit 45107b7
Show file tree
Hide file tree
Showing 7 changed files with 2,616 additions and 9,048 deletions.
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

61 changes: 23 additions & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,29 @@ node_js:
- "stable"
- "10"
- "9"
stages:
- |
setup
test
document
name: deploy
if: branch = master
name: release
if: branch = master
jobs:
include:
- stage: setup
script:
- npm i -g typescript@latest
- npm i -g coveralls
- stage: test
name: "Run unit and smoke tests"
script: npm run test:all
script: npm run smoketest
name: "Run smoketests"
- stage: document
name: "Generate API documents"
script: npm run docs
- stage: deploy
name: "Deploy Github Pages"
deploy:
provider: pages
skip-cleanup: true
github-token: $GH_TOKEN
keep-history: true
on:
branch: master
script: npm run coverage
- stage: release
after_success:
- npm run semantic-release
before_install:
- npm i -g typescript@latest
- npm i -g coveralls
install:
- npm install
script:
- npm run test
- npm run docs
- npm run coverage
after_success:
- npm run semantic-release
deploy:
skip_cleanup: true
provider: pages
skip-cleanup: true
github-token: $GH_TOKEN
keep-history: true
on:
branch: master
condition: $NODE_ENV = production
branches:
except:
- /^v\d+\.\d+\.\d+$/
only:
- master
git:
depth: 3
quiet: true
4 changes: 4 additions & 0 deletions mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--require ts-node/register
--watch-extensions ts,tsx
--timeout 15000
--exit
Loading

0 comments on commit 45107b7

Please sign in to comment.