Compare commits

...

6 Commits

Author SHA1 Message Date
ce9f3871b4 1.0.7 2016-05-30 02:49:01 +02:00
3e9a62e4c9 update .gitlab-ci.yml 2016-05-30 02:48:08 +02:00
242c5f2873 1.0.6 2016-05-30 02:44:48 +02:00
57e2fd8da1 update scripts 2016-05-30 02:44:38 +02:00
742899472c add appveyor 2016-05-30 02:38:31 +02:00
3f126d849f update scome scripts 2016-05-30 02:35:44 +02:00
5 changed files with 18 additions and 8 deletions

View File

@@ -7,25 +7,21 @@ stages:
testLTS: testLTS:
stage: test stage: test
script: script:
- npmci install 4 - npmci test lts
- npm install
- npm test
tags: tags:
- docker - docker
testSTABLE: testSTABLE:
stage: test stage: test
script: script:
- npmci install stable - npmci test stable
- npm install
- npm test
tags: tags:
- docker - docker
release: release:
stage: release stage: release
script: script:
- npm -v - npmci publish
only: only:
- tags - tags
tags: tags:

10
appveyor.yml Normal file
View File

@@ -0,0 +1,10 @@
environment:
nodejs_version: "4"
install:
- ps: Install-Product node $env:nodejs_version
- npm install
test_script:
- node --version
- npm --version
- npm test
build: off

View File

@@ -1,6 +1,6 @@
{ {
"name": "npmci", "name": "npmci",
"version": "1.0.5", "version": "1.0.7",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {

View File

@@ -17,6 +17,8 @@ export let install = (versionArg) => {
"\"" "\""
); );
plugins.beautylog.success("Node version " + version + " successfully installed!"); plugins.beautylog.success("Node version " + version + " successfully installed!");
plugins.shelljs.exec("node -v");
plugins.shelljs.exec("npm -v");
done.resolve(); done.resolve();
return done.promise; return done.promise;
} }

View File

@@ -5,6 +5,8 @@ export let test = (versionArg) => {
let done = plugins.q.defer(); let done = plugins.q.defer();
install(versionArg) install(versionArg)
.then(function(){ .then(function(){
plugins.beautylog.info("now installing dependencies:");
plugins.shelljs.exec("npm install");
plugins.beautylog.info("now starting tests:"); plugins.beautylog.info("now starting tests:");
plugins.shelljs.exec("npm test"); plugins.shelljs.exec("npm test");
plugins.beautylog.success("test finished"); plugins.beautylog.success("test finished");