Skip to content

Commit

Permalink
fix: code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Nov 7, 2018
1 parent cb994b8 commit cff214c
Show file tree
Hide file tree
Showing 4 changed files with 688 additions and 78 deletions.
50 changes: 36 additions & 14 deletions .travis.yml
Expand Up @@ -21,45 +21,67 @@ env:
# See https://git.io/vdao3 for details.
- JOBS=1

matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH

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

- yarn global add codecov
script:
- yarn lint:ts
# 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



after_success:
- nvm install 10
- nvm use 10
- yarn install --no-lockfile --non-interactive
- yarn travis-deploy-once "npm run semantic-release"

branches:
except:
- /^v\d+\.\d+\.\d+$/

stages:
- basic test
- additional tests


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

after_script:
- codecov

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

include:
- stage: basic test
env: EMBER_TRY_SCENARIO=ember-release
- stage: additional tests
env: EMBER_TRY_SCENARIO=ember-lts-2.12
- env: EMBER_TRY_SCENARIO=ember-lts-2.16
# runs linting and tests with current locked deps

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

- name: 'Floating Dependencies'
script:
- yarn 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'
env: EMBER_TRY_SCENARIO=ember-lts-3.4
- env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
20 changes: 18 additions & 2 deletions package.json
Expand Up @@ -24,6 +24,9 @@
"author": "Mike North <michael.l.north@gmail.com> (http://mike.works)",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "7.2.1",
"@commitlint/config-conventional": "7.1.2",
"@commitlint/travis-cli": "7.2.1",
"@ember/optional-features": "0.7.0",
"@ember/test-helpers": "1.0.1",
"@types/ember": "3.0.25",
Expand All @@ -34,6 +37,7 @@
"@types/rsvp": "4.0.2",
"broccoli-asset-rev": "3.0.0",
"ember-cli": "3.5.0",
"ember-cli-code-coverage": "1.0.0-beta.6",
"ember-cli-dependency-checker": "3.0.0",
"ember-cli-github-pages": "0.2.1",
"ember-cli-htmlbars": "3.0.1",
Expand All @@ -56,6 +60,7 @@
"ember-source": "3.5.1",
"ember-source-channel-url": "1.1.0",
"ember-try": "1.1.0",
"husky": "1.1.2",
"json-typescript": "1.0.1",
"jsonapi-typescript": "0.0.9",
"loader.js": "4.7.0",
Expand All @@ -65,6 +70,7 @@
"typescript": "3.1.6"
},
"optionalDependencies": {
"@mike-north/js-lib-renovate-config": "^0.0.1",
"@mike-north/js-lib-semantic-release-config": "^0.0.0-development",
"semantic-release": "^15.9.12"
},
Expand All @@ -77,13 +83,23 @@
"model"
],
"dependencies": {
"ember-cli-babel": "7.1.3",
"ember-cli-typescript": "2.0.0-beta.3"
"ember-cli-babel": "^7.1.3",
"ember-cli-typescript": "^2.0.0-beta.3"
},
"ember-addon": {
"configPath": "tests/dummy/config",
"demoURL": "http://mike.works/ember-api-actions"
},
"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"
},
Expand Down
6 changes: 1 addition & 5 deletions renovate.json
@@ -1,7 +1,3 @@
{
"extends": ["config:base"],
"automerge": true,
"major": {
"automerge": false
}
"extends": ["@mike-north/js-lib-renovate-config"]
}

0 comments on commit cff214c

Please sign in to comment.