File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1+ language : node_js
2+ node_js :
3+ - " 0.10"
4+ before_install :
5+ - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
6+ - git submodule update --init --recursive
7+ - npm install -g grunt-cli
8+ install :
9+ - npm install
10+ - grunt pack --no-color
11+ script :
12+ - exit 0
13+ git :
14+ submodules : false
Original file line number Diff line number Diff line change @@ -10,12 +10,15 @@ function shallowCopy(obj) {
1010 return result ;
1111}
1212
13+ var travis = process . env [ "TRAVIS" ] ;
14+ var buildNumber = process . env [ "TRAVIS_BUILD_NUMBER" ] || process . env [ "BUILD_NUMBER" ] || "non-ci" ;
15+
1316module . exports = function ( grunt ) {
1417 grunt . initConfig ( {
15- copyPackageTo : "\\\\telerik.com\\Resources\\BlackDragon\\Builds\\nativescript-cli ",
18+ copyPackageTo : process . env [ "CopyPackageTo" ] || process . env [ "HOME" ] || ". ",
1619
17- jobName : process . env [ "JOB_NAME" ] || "local" ,
18- buildNumber : process . env [ "BUILD_NUMBER" ] || "non-ci" ,
20+ jobName : travis ? "travis" : ( process . env [ "JOB_NAME" ] || "local" ) ,
21+ buildNumber : buildNumber ,
1922 dateString : now . substr ( 0 , now . indexOf ( "T" ) ) ,
2023
2124 pkg : grunt . file . readJSON ( "package.json" ) ,
@@ -104,7 +107,7 @@ module.exports = function(grunt) {
104107
105108 grunt . registerTask ( "set_package_version" , function ( version ) {
106109 var fs = require ( "fs" ) ;
107- var buildVersion = version !== undefined ? version : process . env [ "BUILD_NUMBER" ] ;
110+ var buildVersion = version !== undefined ? version : buildNumber ;
108111 if ( process . env [ "BUILD_CAUSE_GHPRBCAUSE" ] ) {
109112 buildVersion = "PR" + buildVersion ;
110113 }
Original file line number Diff line number Diff line change 11nativescript-cli
22================
3+ [ ![ Build Status] ( https://travis-ci.org/NativeScript/nativescript-cli.svg?branch=build )] ( https://travis-ci.org/NativeScript/nativescript-cli )
34
45Command-line interface for building NativeScript projects
You can’t perform that action at this time.
0 commit comments