Skip to content

Commit

Permalink
Merge pull request #2 from mike-north/travis-stage
Browse files Browse the repository at this point in the history
Travis-ci stage for deploy
  • Loading branch information
mike-north committed Dec 4, 2018
2 parents 332e37b + 1a0d2f3 commit 5ce2fc6
Show file tree
Hide file tree
Showing 4 changed files with 1,205 additions and 708 deletions.
19 changes: 17 additions & 2 deletions .travis.yml
Expand Up @@ -4,10 +4,25 @@ cache:
- ~/.npm
notifications:
email: false

node_js:
- '10'
after_success:
- yarn travis-deploy-once "yarn semantic-release"

stages:
- 'Tests'
- name: 'Deploy'
if: branch = master AND type = push

jobs:
fail_fast: true
include:
- stage: 'Tests'
name: 'Conventional Commits'
script: commitlint-travis
- name: 'Basic Tests'
- stage: 'Deploy'
name: 'Publish'
script: yarn semantic-release

script: yarn test:ci
branches:
Expand Down
19 changes: 16 additions & 3 deletions package.json
Expand Up @@ -16,11 +16,14 @@
"test": "./node_modules/.bin/mocha",
"test:ci": "yarn lint && yarn test && yarn build",
"test:watch": "./node_modules/.bin/mocha-typescript-watch",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
"semantic-release": "semantic-release"
},
"private": false,
"devDependencies": {
"@commitlint/cli": "7.2.1",
"@commitlint/config-conventional": "7.1.2",
"@commitlint/travis-cli": "7.2.1",
"@mike-north/js-lib-renovate-config": "^1.1.4",
"@semantic-release/changelog": "^3.0.0",
"@semantic-release/git": "^7.0.1",
"@types/chai": "^4.1.4",
Expand All @@ -29,19 +32,29 @@
"@types/mocha": "^5.2.5",
"@types/node": "^10.7.1",
"chai": "^4.1.2",
"husky": "^1.2.0",
"left-pad": "^1.3.0",
"lodash": "^4.17.10",
"mocha": "^5.2.0",
"mocha-typescript": "^1.1.17",
"scripty": "^1.7.2",
"semantic-release": "^15.9.9",
"source-map-support": "^0.5.9",
"travis-deploy-once": "^5.0.2",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.0.1",
"typescript-eslint-parser": "^18.0.0"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "./node_modules/.bin/commitlint -e $HUSKY_GIT_PARAMS"
}
},
"release": {
"verifyConditions": [
"@semantic-release/changelog",
Expand Down
3 changes: 3 additions & 0 deletions renovate.json
@@ -0,0 +1,3 @@
{
"extends": ["@mike-north/js-lib-renovate-config"]
}

0 comments on commit 5ce2fc6

Please sign in to comment.