Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis-ci stage for deploy #2

Merged
merged 1 commit into from Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"]
}