Skip to content

Commit

Permalink
feat: shared semantic-release and renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Nov 11, 2018
1 parent aaad7a0 commit 704a9ae
Show file tree
Hide file tree
Showing 4 changed files with 616 additions and 72 deletions.
60 changes: 34 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
language: node_js
node_js:
- "8"
- '8'

sudo: required
dist: trusty
Expand All @@ -20,23 +19,40 @@ env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
matrix:
# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-lts-2.12
- EMBER_TRY_SCENARIO=ember-lts-2.16
- EMBER_TRY_SCENARIO=ember-lts-2.18
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
- EMBER_TRY_SCENARIO=ember-default
global:
secure: mlHPZlkzVu5JpCzFNz+o/+DGyI6K2VLh5fY2zoAjuClRazPJ/04tKo8Fxol5U32jpeI6LXJlsyu+lO914q2L0M6+i7iTU1XFeL9PbSdK8IK1AdHWFiJAlli+7eDpkan3FnSg9Y3yjmYrKcaVimVMDmk0GlSiUBOlyic/gEj5uPguC1ACwzFVkwgOrxzUITLg6qtwgYGyJUY8QJb3baoFtZZrpSFqHvzPl2Wr7AIXAcVldl7S5fQUEsQ8gKEa8ZCbCMWvebNXDf8v7C/OwjJnh9awZDcNE5pPavV3mvftDY9QQEulxhhoXowJR/X+1lMcMzgkNtEcDceoRSTHG4z98ASQjsx6aywsZiGaqZlfCvpgkmruXTjCaVPR5lGd1imP+arrxlN6Kn6m+kKdf9KnmV7UIt+Q4lbDsWkNQXNuLC8Ag6okJSPXI3CghxRC8L/NR7iiapjs4SrImTUu9+eJMal93FTWqjQdTkZYWYD5ncKvOzFOX7w+PkmVAH/R8nnuQ+MZwhqi3TO7ieWGcC59mS7BeNokElXSpGUiR+4YahZMNYM27XV8RHXpik8DBvrlHQGtCpNtmZwmNSKR66Y/QgKdL1FJ7XEc+LqeRqkXXe9mEbcfMY7YzWDK1dc4+lFwRq24yxVX0/d40fe4T5CZ5K6RkHODpyHY15CYorEXT0c=

matrix:
fast_finish: true
jobs:
fail_fast: true
allow_failures:
- env: ALLOW_DEPRECATIONS=true EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-canary

include:
# runs linting and tests with current locked deps

- stage: 'Tests'
name: 'Tests'
install:
- yarn install --non-interactive
script:
- yarn lint:ts
- ember test

- name: 'Floating Dependencies'
script:
- ember test

# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- stage: 'Additional Tests'
node_js: '10'
env: EMBER_TRY_SCENARIO=ember-lts-2.16
- env: EMBER_TRY_SCENARIO=ember-lts-2.18
- env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
- stage: 'Canary Tests'
script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
env: EMBER_TRY_SCENARIO=ember-canary

install:
- yarn install --no-lockfile --non-interactive
Expand All @@ -46,16 +62,8 @@ before_install:
- export PATH=$HOME/.yarn/bin:$PATH

script:
- yarn lint:js
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup

# after_script:
# - ember sauce:disconnect
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO && yarn travis-deploy-once "yarn semantic-release"

after_success:
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/
16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Idiomatically handle window and view resizes in Ember.js",
"scripts": {
"build": "ember build",
"lint:js": "./node_modules/.bin/tslint --project .",
"lint:ts": "./node_modules/.bin/tslint --project .",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each",
Expand All @@ -18,7 +18,9 @@
},
"homepage": "https://github.com/mike-north/ember-resize",
"devDependencies": {
"@mike-north/js-lib-semantic-release-config": "^0.0.0-development",
"@commitlint/cli": "7.2.1",
"@commitlint/config-conventional": "7.1.2",
"@commitlint/travis-cli": "7.2.1",
"@types/ember": "^3.0.10",
"@types/ember-qunit": "^3.0.3",
"@types/ember-test-helpers": "^1.0.0",
Expand Down Expand Up @@ -54,11 +56,15 @@
"eslint-plugin-typescript": "^0.12.0",
"loader.js": "^4.2.3",
"qunit-dom": "^0.7.1",
"semantic-release": "^15.9.9",
"travis-deploy-once": "^5.0.2",
"typescript": "^3.0.1",
"typescript-eslint-parser": "^18.0.0"
},
"optionalDependencies": {
"@mike-north/js-lib-renovate-config": "1.0.0",
"@mike-north/js-lib-semantic-release-config": "1.0.0",
"semantic-release": "^15.9.12",
"travis-deploy-once": "^5.0.9"
},
"keywords": [
"ember-addon",
"resize"
Expand All @@ -81,4 +87,4 @@
"release": {
"extends": "@mike-north/js-lib-semantic-release-config"
}
}
}
3 changes: 3 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@mike-north/js-lib-renovate-config"]
}
Loading

0 comments on commit 704a9ae

Please sign in to comment.