Skip to content

Commit

Permalink
fix: semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Nov 8, 2018
1 parent 59a4012 commit 47de1dc
Show file tree
Hide file tree
Showing 4 changed files with 10,915 additions and 20 deletions.
54 changes: 36 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,52 @@

---
language: node_js
node_js:
- "4"
- '8'

sudo: false
dist: trusty

addons:
chrome: stable
before_script:
- sudo chown root /opt/google/chrome/chrome-sandbox
- sudo chmod 4755 /opt/google/chrome/chrome-sandbox

cache:
directories:
- $HOME/.npm

yarn: true
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
matrix:

jobs:
fail_fast: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary

include:
# runs linting and tests with current locked deps

- stage: 'Tests'
name: 'Tests'
script:
- yarn lint:hbs
- yarn lint:js
- npm test

# 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-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
- EMBER_TRY_SCENARIO=ember-default

matrix:
fast_finish: true
allow_failures:
- stage: 'Additional Tests'
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-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery

- JOBS=1

before_install:
- npm config set spin false
Expand All @@ -43,13 +58,16 @@ script:
# 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
notifications:
slack:
secure: bePUB2hQZ761p/bDI/0oF14IDXdHKIj4lhDRh3ilfifn4+Arquu2QZHvKhmru9n+YHh7w2gUJZPYtTgTdHiqHK9qbokw/OisMiCdXmiVtWlGTkXcLCydrTa7/ohAlAOa/zio/9ns4+8NH2C1IbiQ2oSUG2VcK8qMX/a7p7n/ExGi3JEM+X2GZE+VhHQUsFRQGghUUTqB37YwTyUMioJUhph1eqQdhJ3RrKWjeMrpVPa88geoIw7qyh/GlYvQNZ5KCphonCyxkmQ4+4YjOb0j/heLY9ncf76arvYAwALPdmMEOc+RKXjW/ixoti03P+v3Ml/4J76volWfd3YiihOuagt4T6PsTE/zVFLYC3i5Tjc3NAEgocoAUdrvHPSEiATtIzCxePxSOU6fL8rvqwd81F5G3Edb55NgDf6tZD/KAB1lmJZ6qV9oxf/d6yQzt0jzjtqdq8h21XiNjCEPUFioLcePajRJPekLzJlTTi3EGv++PSusSZhTlY1gQ6sZ14viTs5UMTIu2XQqZb0FxQNOGDFQSDYCx0Iva40ennrPxNRA6ZopOThOo/DqA+mBvJhpJEod/JpYXuqLIVcsxtmk04kb0uDaTAICdbo1UFOnfv1kjkGF8R7HXajoQG+gsytxqOjeIvy2rVeseq+XnQhTAEYjvHYgiwmu+ymM8jw2gCE=
after_success:
- nvm install 10
- nvm use 10
- yarn install --no-lockfile --non-interactive
- yarn travis-deploy-once "npm run semantic-release"

deploy:
provider: heroku
api_key:
secure: G3Z/CT4aYz+NMLHuYbuBQNRpB3HoOHIgnH2vgUWrC4+c+O9geEPZ6/rcpnaOj4PKY+m2tIHSHvZxd9vOew6AOvGa9mwYZCXehGSYLqp2/ewlatZvhvV2wEHmmX2itooq5wFtZwYlx1xoeYZjwtDoBPPji+ti4wiKaFcImKce/F+iZzPfD/9uN3FuX0ifXnamYXmze/egIRghaIMdcduP9bRCiFBkzNZDWojTWhjh2hbI3F0kfBf0cDnQoM+YccHL75aD0pTVXUomV7BAK2304xeJP1UZQHE47J+kAiu96UDgTE1r7GbXYl2cv1qMNOuLIvTTVUXPngv7Ocry5qQgJibc+sKj+aPlQjRmQNVEoJYGQk/DGC1aWS51C1vcAv221HPYGKTS2Sg3jN+vc2Yd4vCMJ/o9yW7wtecTIa5zx+kJR3p/OoOSFdXuUYei9XIwPqUBMFiut+0BgsRmTNYwlQMIv+KHrfBRK0th3Pl+UdmhN7E2xVFe96W2rvkZu1MX2OHdZmyR0wgbQuDRQtR7Ol4QDjfahSfN7b8MvQl87zZW4lrcpoQc0R3VmpE1T9PkUEevWAFbSsJr8mp/QwSleP7FuTxnrdXsMVASAAoeKZXygdJ/f67fyve9NmO5uLkyfNZQUWoBrgP5PyiZNSya1tLpiitSRACbmT8hDz+hHO4=
app: ember-pin
on:
repo: levanto-financial/ember-pin
repo: mike-north/ember-pin
24 changes: 22 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"author": "Mike North (http://mike.works) <michael.l.north@gmail.com>",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "7.2.1",
"@commitlint/config-conventional": "7.1.2",
"@commitlint/travis-cli": "7.2.1",
"@mike-north/js-lib-semantic-release-config": "^0.0.0-development",
"@mike-north/js-lib-renovate-config": "^0.0.1",
"broccoli-asset-rev": "^2.4.6",
"ember-ci": "0.1.3",
"ember-cli": "2.18.0",
Expand All @@ -36,10 +41,12 @@
"ember-load-initializers": "^1.0.0",
"ember-resolver": "^4.5.0",
"ember-source": "~2.18.0",
"ember-windoc": "~0.2.0",
"eslint-plugin-ember": "^5.0.0",
"eslint-plugin-node": "^5.2.1",
"ember-windoc": "~0.2.0",
"loader.js": "^4.0.11"
"husky": "1.1.2",
"loader.js": "^4.0.11",
"travis-deploy-once": "5.0.9"
},
"keywords": [
"ember-addon"
Expand All @@ -51,5 +58,18 @@
"ember-addon": {
"configPath": "tests/dummy/config",
"demoUrl": "ember-pin.herokuapp.com"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "./node_modules/.bin/commitlint -e $HUSKY_GIT_PARAMS"
}
},
"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 47de1dc

Please sign in to comment.