update travis tests
This commit is contained in:
parent
3960cd9973
commit
78bbe2d1d7
@ -1,6 +1,7 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "4.2.6"
|
- "4.3.1"
|
||||||
|
- "stable"
|
||||||
deploy:
|
deploy:
|
||||||
provider: npm
|
provider: npm
|
||||||
email: npm@lossless.digital
|
email: npm@lossless.digital
|
||||||
|
28
dist/npmts.jsdoc.js
vendored
28
dist/npmts.jsdoc.js
vendored
@ -19,15 +19,25 @@ var genJsdoc = function () {
|
|||||||
};
|
};
|
||||||
var publishDocs = function () {
|
var publishDocs = function () {
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
var deployScript = "" +
|
try {
|
||||||
"cd " + paths.docsDir + " " +
|
var gitUrl = plugins.projectinfo.npm(paths.cwd, {
|
||||||
"&& git init " +
|
gitAccessToken: process.env.GITHUB_TOKEN
|
||||||
"&& git config user.name \"TRAVIS CI\" " +
|
}).git.httpsUrl;
|
||||||
"&& git config user.email \"travis@shipzone.io\" " +
|
var deployScript = ""
|
||||||
"&& git add . " +
|
+ "cd " + paths.docsDir + " "
|
||||||
"&& git commit -m \"Deploy to GitHub Pages\" " +
|
+ "&& git init "
|
||||||
"&& git push --force --quiet \"https://${GH_TOKEN}@${GH_REF}\" master:gh-pages > /dev/null 2>&1";
|
+ "&& git config user.name \"TRAVIS CI\" "
|
||||||
if (true || plugins.smartenv.getEnv().isTravis) {
|
+ "&& git config user.email \"travis@shipzone.io\" "
|
||||||
|
+ "&& git add . "
|
||||||
|
+ "&& git commit -m \"Deploy to GitHub Pages\" "
|
||||||
|
+ "&& git push --force --quiet "
|
||||||
|
+ "\"" + gitUrl + "\" "
|
||||||
|
+ "master:gh-pages ";
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
if (plugins.smartenv.getEnv().isTravis) {
|
||||||
plugins.beautylog.log("now publishing docs to GitHub");
|
plugins.beautylog.log("now publishing docs to GitHub");
|
||||||
if (!plugins.shelljs.which('git')) {
|
if (!plugins.shelljs.which('git')) {
|
||||||
plugins.beautylog.error('Git is not installed');
|
plugins.beautylog.error('Git is not installed');
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
"gulp-typescript": "2.11.0",
|
"gulp-typescript": "2.11.0",
|
||||||
"gulp-typings": "1.1.0",
|
"gulp-typings": "1.1.0",
|
||||||
"merge2": "1.0.1",
|
"merge2": "1.0.1",
|
||||||
"projectinfo": "0.0.5",
|
"projectinfo": "1.0.1",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"shelljs": "^0.6.0",
|
"shelljs": "^0.6.0",
|
||||||
"smartcli": "0.0.11",
|
"smartcli": "0.0.11",
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/sometest/somerepo.git"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)"
|
"test": "(npmts)"
|
||||||
},
|
},
|
||||||
|
@ -19,17 +19,31 @@ var genJsdoc = function(){
|
|||||||
|
|
||||||
var publishDocs = function(){
|
var publishDocs = function(){
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
|
try {
|
||||||
|
var gitUrl = plugins.projectinfo.npm(
|
||||||
|
paths.cwd,
|
||||||
|
{
|
||||||
|
gitAccessToken:process.env.GITHUB_TOKEN
|
||||||
|
}
|
||||||
|
).git.httpsUrl;
|
||||||
|
|
||||||
var deployScript = "" +
|
var deployScript = ""
|
||||||
"cd " + paths.docsDir + " " +
|
+ "cd " + paths.docsDir + " "
|
||||||
"&& git init " +
|
+ "&& git init "
|
||||||
"&& git config user.name \"TRAVIS CI\" " +
|
+ "&& git config user.name \"TRAVIS CI\" "
|
||||||
"&& git config user.email \"travis@shipzone.io\" " +
|
+ "&& git config user.email \"travis@shipzone.io\" "
|
||||||
"&& git add . " +
|
+ "&& git add . "
|
||||||
"&& git commit -m \"Deploy to GitHub Pages\" " +
|
+ "&& git commit -m \"Deploy to GitHub Pages\" "
|
||||||
"&& git push --force --quiet \"https://${GH_TOKEN}@${GH_REF}\" master:gh-pages > /dev/null 2>&1";
|
+ "&& git push --force --quiet "
|
||||||
|
+ "\"" + gitUrl + "\" "
|
||||||
|
+ "master:gh-pages "
|
||||||
|
//+ "> /dev/null 2>&1";
|
||||||
|
}
|
||||||
|
catch (err){
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
|
||||||
if(true || plugins.smartenv.getEnv().isTravis){
|
if(plugins.smartenv.getEnv().isTravis){
|
||||||
plugins.beautylog.log("now publishing docs to GitHub")
|
plugins.beautylog.log("now publishing docs to GitHub")
|
||||||
if (!plugins.shelljs.which('git')) {
|
if (!plugins.shelljs.which('git')) {
|
||||||
plugins.beautylog.error('Git is not installed');
|
plugins.beautylog.error('Git is not installed');
|
||||||
|
Loading…
Reference in New Issue
Block a user