update travis tests

This commit is contained in:
Philipp Kunz 2016-02-23 15:43:18 +01:00
parent 3960cd9973
commit 78bbe2d1d7
5 changed files with 49 additions and 20 deletions

View File

@ -1,6 +1,7 @@
language: node_js
node_js:
- "4.2.6"
- "4.3.1"
- "stable"
deploy:
provider: npm
email: npm@lossless.digital

28
dist/npmts.jsdoc.js vendored
View File

@ -19,15 +19,25 @@ var genJsdoc = function () {
};
var publishDocs = function () {
var done = plugins.Q.defer();
var deployScript = "" +
"cd " + paths.docsDir + " " +
"&& git init " +
"&& git config user.name \"TRAVIS CI\" " +
"&& git config user.email \"travis@shipzone.io\" " +
"&& git add . " +
"&& git commit -m \"Deploy to GitHub Pages\" " +
"&& git push --force --quiet \"https://${GH_TOKEN}@${GH_REF}\" master:gh-pages > /dev/null 2>&1";
if (true || plugins.smartenv.getEnv().isTravis) {
try {
var gitUrl = plugins.projectinfo.npm(paths.cwd, {
gitAccessToken: process.env.GITHUB_TOKEN
}).git.httpsUrl;
var deployScript = ""
+ "cd " + paths.docsDir + " "
+ "&& git init "
+ "&& git config user.name \"TRAVIS CI\" "
+ "&& 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");
if (!plugins.shelljs.which('git')) {
plugins.beautylog.error('Git is not installed');

View File

@ -40,7 +40,7 @@
"gulp-typescript": "2.11.0",
"gulp-typings": "1.1.0",
"merge2": "1.0.1",
"projectinfo": "0.0.5",
"projectinfo": "1.0.1",
"q": "^1.4.1",
"shelljs": "^0.6.0",
"smartcli": "0.0.11",

View File

@ -3,6 +3,10 @@
"version": "2.0.0",
"description": "",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/sometest/somerepo.git"
},
"scripts": {
"test": "(npmts)"
},

View File

@ -19,17 +19,31 @@ var genJsdoc = function(){
var publishDocs = function(){
var done = plugins.Q.defer();
try {
var gitUrl = plugins.projectinfo.npm(
paths.cwd,
{
gitAccessToken:process.env.GITHUB_TOKEN
}
).git.httpsUrl;
var deployScript = "" +
"cd " + paths.docsDir + " " +
"&& git init " +
"&& git config user.name \"TRAVIS CI\" " +
"&& git config user.email \"travis@shipzone.io\" " +
"&& git add . " +
"&& git commit -m \"Deploy to GitHub Pages\" " +
"&& git push --force --quiet \"https://${GH_TOKEN}@${GH_REF}\" master:gh-pages > /dev/null 2>&1";
var deployScript = ""
+ "cd " + paths.docsDir + " "
+ "&& git init "
+ "&& git config user.name \"TRAVIS CI\" "
+ "&& git config user.email \"travis@shipzone.io\" "
+ "&& git add . "
+ "&& git commit -m \"Deploy to GitHub Pages\" "
+ "&& 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")
if (!plugins.shelljs.which('git')) {
plugins.beautylog.error('Git is not installed');