File tree 3 files changed +22
-4
lines changed
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/[email protected] :/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) {
10
10
return result ;
11
11
}
12
12
13
+ var travis = process . env [ "TRAVIS" ] ;
14
+ var buildNumber = process . env [ "TRAVIS_BUILD_NUMBER" ] || process . env [ "BUILD_NUMBER" ] || "non-ci" ;
15
+
13
16
module . exports = function ( grunt ) {
14
17
grunt . initConfig ( {
15
- copyPackageTo : "\\\\telerik.com\\Resources\\BlackDragon\\Builds\\nativescript-cli ",
18
+ copyPackageTo : process . env [ "CopyPackageTo" ] || process . env [ "HOME" ] || ". ",
16
19
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 ,
19
22
dateString : now . substr ( 0 , now . indexOf ( "T" ) ) ,
20
23
21
24
pkg : grunt . file . readJSON ( "package.json" ) ,
@@ -104,7 +107,7 @@ module.exports = function(grunt) {
104
107
105
108
grunt . registerTask ( "set_package_version" , function ( version ) {
106
109
var fs = require ( "fs" ) ;
107
- var buildVersion = version !== undefined ? version : process . env [ "BUILD_NUMBER" ] ;
110
+ var buildVersion = version !== undefined ? version : buildNumber ;
108
111
if ( process . env [ "BUILD_CAUSE_GHPRBCAUSE" ] ) {
109
112
buildVersion = "PR" + buildVersion ;
110
113
}
Original file line number Diff line number Diff line change 1
1
nativescript-cli
2
2
================
3
+ [ ![ Build Status] ( https://travis-ci.org/NativeScript/nativescript-cli.svg?branch=build )] ( https://travis-ci.org/NativeScript/nativescript-cli )
3
4
4
5
Command-line interface for building NativeScript projects
You can’t perform that action at this time.
0 commit comments