Skip to content

Commit

Permalink
fix: ensure build step happens in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Mar 27, 2019
1 parent 1f510cb commit 1bbad53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH

before_script: yarn global add codecov

stages:
- 'Test'
- name: 'Deploy'
Expand All @@ -24,21 +22,18 @@ jobs:
- name: 'Lint'
script: yarn lint
- name: 'Floating Dependencies'
after_success: codecov
- name: 'Fixed Dependencies'
install:
- yarn install --non-interactive
script: yarn test

- yarn install --no-lockfile --non-interactive
- name: 'Fixed Dependencies'
before_script: yarn build && yarn global add codecov
script:
- node_modules/.bin/nyc yarn test
after_success: codecov
- stage: 'Deploy'
name: 'Publish to npm'
install:
- yarn install --non-interactive
script: yarn semantic-release

install:
- yarn install --no-lockfile --non-interactive
- yarn install --non-interactive

script:
- node_modules/.bin/nyc yarn test

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "json-typescript",
"version": "1.0.0",
"description": "TypeScript type definitions for JSON objects",
"main": "index.ts",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"test": "./node_modules/.bin/mocha --opts tests/mocha.opts",
Expand Down

0 comments on commit 1bbad53

Please sign in to comment.