I have this repo which uses ember 1.11.0
.
我有这个使用ember 1.11.0的repo。
My bower.json looks like this:
我的bower.json看起来像这样:
{
"name": "emberx-autosuggest",
"dependencies": {
"ember": "1.11.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.16.1",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
"ember-qunit": "0.3.1",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.15",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1"
}
}
My tests all pass locally but when I push to github, travis appears to be running my tests against ember 1.10.0, 1.11.0 and 1.12.0-beta.1.
我的测试都在本地传递但是当我推送到github时,travis似乎正在运行我对ember 1.10.0,1.11.0和1.12.0-beta.1的测试。
I only want to run against 1.11.0, how can I configure travis to do this?
我只想对1.11.0运行,如何配置travis来执行此操作?
My travis.yml looks like this:
我的travis.yml看起来像这样:
---
language: node_js
node_js:
- "0.12"
sudo: false
cache:
directories:
- node_modules
before_install:
- "npm config set spin false"
- "npm install -g npm@^2"
install:
- npm install -g bower
- npm install
- bower install
script:
- npm test
My package.json looks like this:
我的package.json看起来像这样:
{
"name": "emberx-autosuggest",
"version": "0.0.1",
"description": "Tag picker functionality",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember try:testall"
},
"repository": "https://github.com/dagda1/emberx-autosuggest.git",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.0.2",
"ember-cli": "0.2.3",
"ember-cli-app-version": "0.3.3",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "0.0.8",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.10",
"ember-cli-uglify": "1.0.1",
"ember-data": "1.0.0-beta.16.1",
"ember-export-application-global": "^1.0.2",
"ember-disable-prototype-extensions": "^1.0.0",
"ember-try": "0.0.4"
},
"keywords": [
"ember-addon"
],
"dependencies": {
"ember-cli-htmlbars": "0.7.4",
"ember-cli-babel": "^5.0.0"
},
"ember-addon": {
"configPath": "tests/dummy/config"
}
}
1 个解决方案
#1
1
Uninstall ember-try, or edit config/ember-try.js to test only the versions of ember you would like.
卸载ember-try,或编辑config / ember-try.js以仅测试您想要的ember版本。
#1
1
Uninstall ember-try, or edit config/ember-try.js to test only the versions of ember you would like.
卸载ember-try,或编辑config / ember-try.js以仅测试您想要的ember版本。