-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
162 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
--- | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
notifications: | ||
email: false | ||
- "0.12" | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
before_install: | ||
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH | ||
- "npm config set spin false" | ||
- "npm install -g npm@^2" | ||
|
||
install: | ||
- npm install -g broccoli-cli | ||
- npm install -g bower | ||
- bower install | ||
- npm install | ||
|
||
script: | ||
- npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,6 @@ | |
"tests" | ||
], | ||
"dependencies": { | ||
"loader.js": "~3.2.1" | ||
"ember-cli-test-loader": "~0.1.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* jshint node:true */ | ||
var funnel = require('broccoli-funnel'); | ||
var es6 = require('broccoli-babel-transpiler'); | ||
var concat = require('broccoli-concat'); | ||
var mergeTrees = require('broccoli-merge-trees'); | ||
|
||
var pkg = require('../package.json'); | ||
var packageName = pkg.name; | ||
var outputFileName = packageName + '-tests.amd.js'; | ||
|
||
function buildTestTree() { | ||
var testJSTree = funnel('./tests', { | ||
include: ['**/*.js'], | ||
destDir: '/tests' | ||
}); | ||
|
||
testJSTree = es6(testJSTree, { | ||
moduleIds: true, | ||
modules: 'amdStrict' | ||
}); | ||
|
||
testJSTree = concat(testJSTree, { | ||
inputFiles: ['**/*.js'], | ||
outputFile: '/tests/' + outputFileName | ||
}); | ||
|
||
var testExtTree = funnel('./node_modules', { | ||
include: [ | ||
'qunitjs/qunit/qunit.js', | ||
'qunitjs/qunit/qunit.css' | ||
], | ||
destDir: '/tests' | ||
}); | ||
|
||
testExtTree = mergeTrees([testExtTree, funnel('./bower_components', { | ||
include: [ | ||
'ember-cli-test-loader/test-loader.js' | ||
], | ||
destDir: '/tests' | ||
})]); | ||
|
||
var testHTMLTree = funnel('./tests', { | ||
include: ['index.html'], | ||
destDir: '/tests' | ||
}); | ||
|
||
var testTree = mergeTrees([ | ||
testJSTree, | ||
testExtTree, | ||
testHTMLTree | ||
]); | ||
|
||
return testTree; | ||
} | ||
|
||
module.exports = { | ||
build: buildTestTree | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"framework": "qunit", | ||
"test_page": "dist/tests/index.html", | ||
"src_files": [ | ||
"tests/**/*.js", | ||
"src/**/*.js" | ||
], | ||
"before_tests": "npm run build", | ||
"launch_in_ci": [ | ||
"PhantomJS" | ||
], | ||
"launch_in_dev": [ | ||
"PhantomJS", | ||
"Chrome" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters