File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ bower_components /
2+ coverage /
3+ node_modules /
Original file line number Diff line number Diff line change 1- 0.10.26
1+ 4.4.3
Original file line number Diff line number Diff line change 11language : node_js
2- sudo : false
3- node_js :
4- - ' 0.10'
5- addons :
6- apt :
7- packages :
8- - graphicsmagick
9- before_install :
10- - npm install bower
11- - ./node_modules/bower/bin/bower install
2+ sudo : required
3+ services :
4+ - docker
5+ install :
6+ - docker build -t jtblin/angular-chart.js .
7+ script :
8+ - docker run --name angular-chart.js -it -e REPORTER=$REPORTER -e CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN -e CI=$CI -e TOLERANCE=$TOLERANCE -e DELAY=$DELAY -e IMGUR_ID=$IMGUR_ID jtblin/angular-chart.js
129after_success :
13- - ./node_modules/codeclimate-test-reporter/bin/codeclimate.js < coverage/lcov.info
10+ - docker start angular-chart.js
11+ - docker exec -it angular-chart.js npm run codeclimate
12+ - docker stop angular-chart.js
13+ - docker rm angular-chart.js
1414env :
1515 global :
1616 - secure : YWABlINoIkwl9RFLOW9G0lATEP3aiXXi+DS6TWfvQWWG/jkS5sn7IqWC2U67LjwQ0lDg0yevo3ZD7FyYQ5lr8AVuScAZ6P2o2dm9t/HBKGTG4u016dxbWWYVZ8MAlKT7TfjVD8iDzcWyZedsbpuyaNNp4pGr/CNcvq7TGdJLNkU=
1717 - CI=1
18- - TOLERANCE=0.002
19- - DELAY=5000
18+ - REPORTER=list
Original file line number Diff line number Diff line change 1+ FROM jtblin/debian-node-graphicsmagick:stretch-node-v4.4.3-gm-v1.3.23
2+ WORKDIR /src
3+ ADD . ./
4+ RUN chown -R node:node /src
5+ USER node
6+ RUN npm install && npm install bower && ./node_modules/bower/bin/bower install
7+ CMD ["npm" , "test" ]
Original file line number Diff line number Diff line change 6969 hooks : 'mocha-phantomjs-istanbul' ,
7070 coverageFile : 'coverage/coverage.json'
7171 } ,
72- reporter : 'spec'
72+ reporter : process . env . REPORTER || 'spec'
7373 } ) ) ;
7474 } ) ;
7575
Original file line number Diff line number Diff line change 77 "example" : " examples"
88 },
99 "scripts" : {
10+ "codeclimate" : " ./node_modules/codeclimate-test-reporter/bin/codeclimate.js < coverage/lcov.info" ,
11+ "docker" : " docker build -t angular-chart.js . && docker run --rm -it -v `pwd`/coverage:/src/coverage angular-chart.js" ,
1012 "test" : " gulp check"
1113 },
1214 "author" : " Jerome Touffe-Blin <jtblin@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments