Граф коммитов

40 Коммитов

Автор SHA1 Сообщение Дата
Jack Francis 8b76e334fc rationalizes build-cross and dist Makefile targets (#1466)
* rationalizes build-cross and dist Makefile targets

- build-cross now depends on build, and uses the git tag if the checked out branch correlates with a tag
- dist now depends upon build-cross

This produces friendly artifacts with a `make dist` like so:

```
$ find _dist -maxdepth 1 -type f
_dist/acs-engine-a1af5fbc14aee06f19a9d4863dcc05fe7d437cab-darwin-amd64.tar.gz
_dist/acs-engine-a1af5fbc14aee06f19a9d4863dcc05fe7d437cab-darwin-amd64.zip
_dist/acs-engine-a1af5fbc14aee06f19a9d4863dcc05fe7d437cab-linux-amd64.tar.gz
_dist/acs-engine-a1af5fbc14aee06f19a9d4863dcc05fe7d437cab-linux-amd64.zip
_dist/acs-engine-a1af5fbc14aee06f19a9d4863dcc05fe7d437cab-windows-amd64.tar.gz
_dist/acs-engine-a1af5fbc14aee06f19a9d4863dcc05fe7d437cab-windows-amd64.zip
```

Or, for a release, when a release tag is checked out:

```
$ find _dist -maxdepth 1 -type f
_dist/acs-engine-v0.7.0-darwin-amd64.tar.gz
_dist/acs-engine-v0.7.0-darwin-amd64.zip
_dist/acs-engine-v0.7.0-linux-amd64.tar.gz
_dist/acs-engine-v0.7.0-linux-amd64.zip
_dist/acs-engine-v0.7.0-windows-amd64.tar.gz
_dist/acs-engine-v0.7.0-windows-amd64.zip
```

* using short git sha for gittag fallback
2017-09-21 16:36:47 -07:00
Bruce Campbell d256935836 Fixes debug build. Does not strip symbols when debug (#1451) 2017-09-18 13:30:50 -07:00
Sean Knox f93c3807c2 Automate Kubernetes on Windows builds (#1236)
* chore(k8s windows): add script to automate Kubernetes on Windows builds

* docs(k8s windows): update docs

* Update pause.ps1
2017-08-28 18:41:24 -07:00
Jack Francis 74625737f7 vendor/ dependency rationalization (#1340)
* rationalized vendor directory

- updated dependency declarations and version pinning (glide.lock)
- updated dependent code under vendor/
- added new `build-vendor` target to aid periodic rationalizations like this

* preferring build-binary

* testing

* delete sirupsen

* add sirupsen

* don’t need build-vendor
2017-08-23 16:09:58 -07:00
Jonathan Chauncey 5cfd0942a2 fix(Makefile): Call bootstrap before we run generate (#1276)
* fix(Makefile): Call bootstrap before we run generate
closes #1274
We call out to glide to get a list of directories when we run generate. This fails if the person doesnt have glide. So lets just go ahead and call bootstrap as part of that process

* remove GOFILES and instead just do the glide novendor in generate

* remove PKG variable declaration
2017-08-17 20:01:01 -07:00
Bruce Campbell 61a2db0a61 DCOS with Windows Agents (#1132) 2017-08-17 11:56:33 -07:00
Seth Goings 5fa2451897 improve version command (#1238)
- always output git sha (plus dirty or clean)
- if we're building a tag, show that
- remove build timestamp
2017-08-16 16:18:13 -07:00
Jonathan Chauncey 3105386a6d fix(Makefile): run generate before test target (#1264)
*closes #1251
2017-08-16 15:37:21 -07:00
Jack Francis 97ab47bd94 Delivers a `make test-kubernetes` ginkgo e2e test (#1256)
* delivers a `make test-kubernetes` ginkgo e2e test

with circle config

* chore(make) make test needs to skip e2e dirs

* using ginkgo coverage script

* chmod +x scripts/ginkgo.coverage.sh

* added ginkgo-k8s-e2e to circleci jobs options

* include test.mk

* chmod +x test/e2e/runner

* split out into two circleci workflows

* master only test filter and tab correction

* missing colon after test expansion

* undo

* removing azure region from code
2017-08-16 13:19:41 -07:00
Sean Knox 4ea84d018b Fix make generate slowness on Docker for Mac (#1226)
* fix(docker): add .git to the repo. needed for acs-engine version and dev
workflow

* fix(generate): replace slow `go list ...` with `glide novendor`
2017-08-09 19:19:04 -07:00
Sean Knox 1261a5f999 chore(Makefile): don't run 'make style' on 'make test' (#1199) 2017-08-07 12:46:40 -07:00
David Tesar 55bf4ab061 Add Ginkgo unit test & JUnit reporting framework (#1166)
* add cmd version unit test

* generalize JUnit output directory

* upload junit tests to CircleCI

* extract common Ginkgo bootstrap

* use ginkgo for make test

* updated use of ginkgo
2017-08-04 10:02:43 -07:00
Sean Knox 3adb1b8ddf use Circle CI as dedicated CI for acs-engine, make CI results public (#1148)
* chore(ci): use circle-ci as CI platform

* ref(Dockerfile): cache make bootstrap step

* chore(ci): separate e2e tests into separate step

* ref(ci): require manual approval to start e2e tests

* ref(ci): use microsoft/acs-engine:latest as base test image

* chore(kubectl): bump kubectl to v1.6.6

* fix(setup): install gometalinter as part of bootstrap

* ref(CI): remove docker build, refactor e2e test step

Circle CI runs all steps in the microsoft/acs-engine:latest container
and clones the latest code into the container, so no explicit need to
build an image

* fix(ci): explicitly run bootstrap at each step

* fix(ci): add GOPATH env

* fix(ci): bootstrap once. maybe?

* ref(e2e): set default ENV vars, remove cruft

* ref(ci): don't hold e2e pending on unit tests

* docs(ci): add CI badge

* fix(e2e): fix env vars

* fix(e2e): run e2e in docker container

* Revert "fix(e2e): run e2e in docker container"

This reverts commit 9e7e4765257d6a7e52d5af5eb547da6f74f9fea1.

* ref(e2e): remove Jenkins groovy scripts

* ref(ci): run subset of e2e tests for PRs, remove KV tests

- acse-pr.json becomes acse-feature-validation.json that we can use for
integration testing at a later stage (merge to master, releases, etc.)
- New acse-pr.json runs 4 e2e tests, one for each orchestrator
- Remove Key Vault setup in PR tests.

* chore(e2e): run full set of feature validation tests on master branch
2017-08-01 17:38:29 -07:00
Sean Knox 2b09dca8f9 Run "make test-style" as part of CI (#1123)
* fix(style): fix linter errors

* fix(style): fix linter errors

* fix(style): fix linter errors

* fix(style): gofmt files

* fix(style): fix mispellings

* ref(vlabs): remove dead code

* ref(*): fix ineffective assigns

* ref(*): fix type referenced in log message

* fix(style): use keyed field on composite literal

* chore(tests): enable `make test-style` as part of ci

* fix(style): gofmt pkg/acsengine/engine_test.go
2017-07-28 22:08:37 -07:00
Maxim Vorobjov 7b424ae751 Obvious Makefile typo and documentation update (#1126)
* fix Makefile typo

* fix documentation with new acs-engine path
2017-07-28 10:55:34 -07:00
Sean Knox 05871f14ea Build Linux, Mac, and Windows binaries (#1077)
* chore(Makefile): improve bootstrap command

* ref(Makefile): refactor `make build`, use go install

* chore(release): support building windows, linux, macos binaries

* ref(Makefile): change name order of bins (project-ver-platform-arch)

* fix(ci): fix path of acs-engine binary

* fix(Makefile): fix wrong argument in go install
2017-07-25 22:16:18 -07:00
Sean Knox b3e54fa327 chore(coverage): add `make coverage` command (#1080)
* chore(coverage): add `make coverage` command

* docs(README): add code coverage badge
2017-07-24 17:24:09 -07:00
Sean Knox 33e9e04c91 ref(*): remove gitignored templates.go (#973)
* ref(*): remove gitignored templates.go

* ref(tests): remove deprecated validate-generated.sh task
2017-07-13 14:12:07 -07:00
Sean Knox 1528b96d2b
ref(*): install prereqs before "make ci" 2017-06-23 09:11:16 -06:00
Sean Knox 0e2e7e34ba
ref(*): use build instead of _build make target 2017-06-23 09:11:16 -06:00
Sean Knox 7ddf0bc8e8
ref(*): don't attempt to install dev prereqs automatically 2017-06-23 09:11:16 -06:00
Sean Knox 95d6609496
feat(ci): add dev guide, style checks 2017-06-23 09:11:15 -06:00
Cole Mickens 9956bdd987 Makefile: uses glide properly (#648) 2017-05-17 13:06:24 -07:00
Cole Mickens 3480faabdb util: add CleanDeleteVirtualMachine
- add new ACSEngineClient functions as needed
- add new interface for the AzureStorageClient
  (it's a separate interface because there might be more
  than one storage account used in the context of a request)
2017-05-16 15:56:25 -07:00
Cole Mickens 7a4514cd18 add go-homedir to Makefile 2017-05-15 14:10:29 -07:00
Anubhuti Manohar 39394fa8de Add upgrade container service API validation and hookup with upgrade command
Add upgrade container service API validation
Hookup with upgrade command
Query all to get a list of matching VM resources that need to be upgraded
2017-05-12 16:52:09 -07:00
Cole Mickens 1189d5394d upgrade: add upgrade command behind feature env var 2017-05-12 16:52:06 -07:00
Anubhuti Manohar a85670a688 Initial Kubernetes upgrade workflow interfaces (#584)
Initial Kubernetes upgrade workflow interfaces
2017-05-12 16:39:10 -07:00
Cole Mickens 362923e886 Restructure commands. Introduce cobra/logrus 2017-05-10 10:26:58 -07:00
Rakesh Veeramacheneni 41bcac2cf2 Add git sha-1 version info (#412) 2017-03-20 22:55:10 -07:00
Dmitry Shmulevich 83fdb15268 addressed comments 2017-03-08 15:04:50 -08:00
Dmitry Shmulevich 87c83c9fba use gofmt for patch submission 2017-03-08 14:36:40 -08:00
Dmitry Shmulevich 91e9569426 added go utility to run concurrent deployment/validation tests 2017-03-07 13:06:32 -08:00
Cole Mickens f592b9c6fa makefile: fix prereqs ordering 2017-02-21 13:40:31 -08:00
Cole Mickens e1b2bcdec5 Bump `az`, `kubectl` and `go` versions. 2017-02-21 13:23:13 -08:00
Cole Mickens 4b20f1a3e9 go-bindata: ignore metadata 2017-02-21 13:23:13 -08:00
Cole Mickens f24b772cba makefile: fix generate/get order (#173) 2017-01-10 16:31:04 -08:00
Cole Mickens 54ab37b8ab fix Makefile to always run targets 2017-01-10 12:29:27 -08:00
Cole Mickens c11c26915e Add devenv for building/testing/validating under Docker 2016-10-27 12:10:36 -07:00
Cole Mickens e7b5f23ac4 basic e2e testing for k8s 2016-10-26 14:01:09 -07:00