(cmd string, target target)
| 273 | } |
| 274 | |
| 275 | func runCommand(cmd string, target target) { |
| 276 | var tags []string |
| 277 | if noupgrade { |
| 278 | tags = []string{"noupgrade"} |
| 279 | } |
| 280 | tags = append(tags, strings.Fields(extraTags)...) |
| 281 | |
| 282 | switch cmd { |
| 283 | case "install": |
| 284 | install(target, tags) |
| 285 | metalintShort() |
| 286 | |
| 287 | case "build": |
| 288 | build(target, tags) |
| 289 | |
| 290 | case "test": |
| 291 | test(strings.Fields(extraTags), "github.com/syncthing/syncthing/internal/...", "github.com/syncthing/syncthing/lib/...", "github.com/syncthing/syncthing/cmd/...") |
| 292 | |
| 293 | case "bench": |
| 294 | bench(strings.Fields(extraTags), "github.com/syncthing/syncthing/internal/...", "github.com/syncthing/syncthing/lib/...", "github.com/syncthing/syncthing/cmd/...") |
| 295 | |
| 296 | case "integration": |
| 297 | integration(false) |
| 298 | |
| 299 | case "integrationbench": |
| 300 | integration(true) |
| 301 | |
| 302 | case "assets": |
| 303 | rebuildAssets() |
| 304 | |
| 305 | case "update-deps": |
| 306 | updateDependencies() |
| 307 | |
| 308 | case "proto": |
| 309 | proto() |
| 310 | |
| 311 | case "testmocks": |
| 312 | testmocks() |
| 313 | |
| 314 | case "translate": |
| 315 | translate() |
| 316 | |
| 317 | case "transifex": |
| 318 | transifex() |
| 319 | |
| 320 | case "weblate": |
| 321 | weblate() |
| 322 | |
| 323 | case "tar": |
| 324 | buildTar(target, tags) |
| 325 | writeCompatJSON() |
| 326 | |
| 327 | case "zip": |
| 328 | buildZip(target, tags) |
| 329 | writeCompatJSON() |
| 330 | |
| 331 | case "deb": |
| 332 | buildDeb(target, tags) |
no test coverage detected