Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e92827de57 | |||
| 2782a242be | |||
| eef63f6b38 | |||
| ce9f3871b4 | |||
| 3e9a62e4c9 | |||
| 242c5f2873 | |||
| 57e2fd8da1 | |||
| 742899472c | |||
| 3f126d849f |
@@ -7,25 +7,21 @@ stages:
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci install 4
|
||||
- npm install
|
||||
- npm test
|
||||
- npmci test lts
|
||||
tags:
|
||||
- docker
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci install stable
|
||||
- npm install
|
||||
- npm test
|
||||
- npmci test stable
|
||||
tags:
|
||||
- docker
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npm -v
|
||||
- npmci publish
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
|
||||
10
appveyor.yml
Normal file
10
appveyor.yml
Normal 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
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "npmci",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.9",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
||||
@@ -17,6 +17,8 @@ export let install = (versionArg) => {
|
||||
"\""
|
||||
);
|
||||
plugins.beautylog.success("Node version " + version + " successfully installed!");
|
||||
plugins.shelljs.exec("node -v");
|
||||
plugins.shelljs.exec("npm -v");
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
}
|
||||
@@ -8,8 +8,9 @@ let npmrcFileString = npmrcPrefix + npmToken;
|
||||
|
||||
export let publish = () => {
|
||||
let done = plugins.q.defer();
|
||||
|
||||
plugins.beautylog.ok("Tests passed, now publishing to npm!");
|
||||
plugins.smartfile.memory.toFs(npmrcFileString,{fileName:".npmrc",filePath:"/root/"});
|
||||
plugins.shelljs.exec("npm publish");
|
||||
plugins.beautylog.ok("Done!")
|
||||
return done.promise;
|
||||
};
|
||||
@@ -5,6 +5,8 @@ export let test = (versionArg) => {
|
||||
let done = plugins.q.defer();
|
||||
install(versionArg)
|
||||
.then(function(){
|
||||
plugins.beautylog.info("now installing dependencies:");
|
||||
plugins.shelljs.exec("npm install");
|
||||
plugins.beautylog.info("now starting tests:");
|
||||
plugins.shelljs.exec("npm test");
|
||||
plugins.beautylog.success("test finished");
|
||||
|
||||
Reference in New Issue
Block a user