Merge branch 'gitlab'
This commit is contained in:
commit
09706778d9
3 changed files with 22 additions and 3 deletions
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
image: node:6-slim
|
||||||
|
services:
|
||||||
|
- mongo
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npm test
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
cache:
|
||||||
|
key: "$CI_BUILD_REF_NAME"
|
||||||
|
untracked: true
|
||||||
|
paths:
|
||||||
|
- node_modules
|
|
@ -7,7 +7,7 @@
|
||||||
"build": "babel -d public/views views",
|
"build": "babel -d public/views views",
|
||||||
"cover": "istanbul cover _mocha -- --require babel-core/register --require co-mocha test/**/*.js",
|
"cover": "istanbul cover _mocha -- --require babel-core/register --require co-mocha test/**/*.js",
|
||||||
"start": "node -r babel-core/register app.js",
|
"start": "node -r babel-core/register app.js",
|
||||||
"test": "mocha --require co-mocha --compilers js:babel-core/register test/**/*.js --timeout=10000",
|
"test": "mocha --require co-mocha --compilers js:babel-core/register test/**/*.js --timeout=15000",
|
||||||
"watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"",
|
"watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"",
|
||||||
"watch-js": "babel -wd public/views views",
|
"watch-js": "babel -wd public/views views",
|
||||||
"watch-server": "nodemon -x \"node -r babel-core/register\" -e js,jsx -i public/ -i chrome/ app.js",
|
"watch-server": "nodemon -x \"node -r babel-core/register\" -e js,jsx -i public/ -i chrome/ app.js",
|
||||||
|
|
|
@ -16,8 +16,8 @@ describe('iTunes Music', function(){
|
||||||
|
|
||||||
describe('search', function(){
|
describe('search', function(){
|
||||||
it('should find album by search', function* (){
|
it('should find album by search', function* (){
|
||||||
const result = yield itunes.search({type: 'album', artist: {name: 'Deftones'}, name: 'Deftones'});
|
const result = yield itunes.search({type: 'album', artist: {name: 'Deftones'}, name: 'White Pony'});
|
||||||
result.name.should.equal('Deftones');
|
result.name.should.equal('White Pony');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should find track by search', function* (){
|
it('should find track by search', function* (){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue