@@ -31,17 +31,14 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
3131 cancelLabel := cancel .Arg ("label" , "Launchd job label" ).String ()
3232
3333 buildMobile := build .Command ("mobile" , "Start an iOS and Android build" )
34- buildMobileSkipCI := buildMobile .Flag ("skip-ci" , "Whether to skip CI" ).Bool ()
3534 buildMobileAutomated := buildMobile .Flag ("automated" , "Whether this is a timed build" ).Bool ()
3635 buildMobileCientCommit := buildMobile .Flag ("client-commit" , "Build a specific client commit hash" ).String ()
3736
3837 buildAndroid := build .Command ("android" , "Start an android build" )
39- buildAndroidSkipCI := buildAndroid .Flag ("skip-ci" , "Whether to skip CI" ).Bool ()
4038 buildAndroidAutomated := buildAndroid .Flag ("automated" , "Whether this is a timed build" ).Bool ()
4139 buildAndroidCientCommit := buildAndroid .Flag ("client-commit" , "Build a specific client commit hash" ).String ()
4240 buildIOS := build .Command ("ios" , "Start an ios build" )
4341 buildIOSClean := buildIOS .Flag ("clean" , "Whether to clean first" ).Bool ()
44- buildIOSSkipCI := buildIOS .Flag ("skip-ci" , "Whether to skip CI" ).Bool ()
4542 buildIOSAutomated := buildIOS .Flag ("automated" , "Whether this is a timed build" ).Bool ()
4643 buildIOSCientCommit := buildIOS .Flag ("client-commit" , "Build a specific client commit hash" ).String ()
4744
@@ -92,7 +89,6 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
9289 return launchd .Stop (* cancelLabel )
9390
9491 case buildMobile .FullCommand ():
95- skipCI := * buildMobileSkipCI
9692 automated := * buildMobileAutomated
9793 script := launchd.Script {
9894 Label : "keybase.build.mobile" ,
@@ -106,15 +102,14 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
106102 {Key : "NDK_HOME" , Value : NDKPath },
107103 {Key : "ANDROID_NDK" , Value : NDKPath },
108104 {Key : "CLIENT_COMMIT" , Value : * buildMobileCientCommit },
109- {Key : "CHECK_CI" , Value : boolToEnvString (! skipCI )},
105+ {Key : "CHECK_CI" , Value : boolToEnvString (false )},
110106 {Key : "AUTOMATED_BUILD" , Value : boolToEnvString (automated )},
111107 },
112108 }
113109 env .GoPath = env .PathFromHome ("go-ios" )
114110 return runScript (bot , channel , env , script )
115111
116112 case buildAndroid .FullCommand ():
117- skipCI := * buildAndroidSkipCI
118113 automated := * buildAndroidAutomated
119114 script := launchd.Script {
120115 Label : "keybase.build.android" ,
@@ -125,15 +120,14 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
125120 {Key : "ANDROID_NDK_HOME" , Value : NDKPath },
126121 {Key : "ANDROID_NDK" , Value : NDKPath },
127122 {Key : "CLIENT_COMMIT" , Value : * buildAndroidCientCommit },
128- {Key : "CHECK_CI" , Value : boolToEnvString (! skipCI )},
123+ {Key : "CHECK_CI" , Value : boolToEnvString (false )},
129124 {Key : "AUTOMATED_BUILD" , Value : boolToEnvString (automated )},
130125 },
131126 }
132127 env .GoPath = env .PathFromHome ("go-android" ) // Custom go path for Android so we don't conflict
133128 return runScript (bot , channel , env , script )
134129
135130 case buildIOS .FullCommand ():
136- skipCI := * buildIOSSkipCI
137131 iosClean := * buildIOSClean
138132 automated := * buildIOSAutomated
139133 script := launchd.Script {
@@ -143,7 +137,7 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
143137 EnvVars : []launchd.EnvVar {
144138 {Key : "CLIENT_COMMIT" , Value : * buildIOSCientCommit },
145139 {Key : "CLEAN" , Value : boolToEnvString (iosClean )},
146- {Key : "CHECK_CI" , Value : boolToEnvString (! skipCI )},
140+ {Key : "CHECK_CI" , Value : boolToEnvString (false )},
147141 {Key : "AUTOMATED_BUILD" , Value : boolToEnvString (automated )},
148142 },
149143 }
0 commit comments