Commit Graph

53 Commits

Author SHA1 Message Date
nikhiljindal
e76140ad28 Start running v1 tests on travis and shippable 2015-06-08 10:03:38 -07:00
Kris
f4e2c738f6 Delete deprecated API versions
pkg/service:

There were a couple of references here just as a reminder to change the
behavior of findPort. As of v1beta3, TargetPort was always defaulted, so
we could remove findDefaultPort and related tests.

pkg/apiserver:

The tests were using versioned API codecs for some of their encoding
tests. Necessary API types had to be written and registered with the
fake versioned codecs.

pkg/kubectl:

Some tests were converted to current versions where it made sense.
2015-05-29 17:17:35 -07:00
nikhiljindal
fa9f864782 Adding a script to update etcd objects 2015-05-15 16:20:35 -07:00
nikhiljindal
0e9d7d1451 Fixing the number of times our unit tests are run 2015-05-13 09:56:13 -07:00
Hector Virgen
1a784cd489 Adds Karma to TravisCI
- Updates travis to run karma
- Adds some actual tests

Sample build success: https://travis-ci.org/djvirgen/kubernetes/jobs/61567253

Note: My branch is currently up to date with master but all the Go stuff is failing in Travis. Not sure why Go is failing, but the Karma stuff is running OK. I've also verified that when a Jasmine test fails, Travis will fail the build (see [this build](https://travis-ci.org/djvirgen/kubernetes/jobs/61567666) here).
2015-05-11 21:54:04 -07:00
Prashanth Balasubramanian
080bc5b3dd Configurable log levels for integration tests. 2015-04-23 18:12:48 -07:00
Yu-Ju Hong
faf47b6f0b Limit the number of concurrent tests in integration.go
Integration test often time out because the machine is loaded. Instead of
increasing timeout, this change hopes to address the issue by limiting the
number of tests running simultaneously.

Add a new flag in integration.go to specify the maximum number of concurrent
tests. Set the default in travis and shippable configurations to be 4.
2015-04-09 16:54:23 -07:00
Clayton Coleman
6830d0df0d Move gendocs earlier in the travis chain so users know they forgot a "standard" step 2015-03-26 13:56:01 -04:00
nikhiljindal
5e4ab8e045 Updating test-go.sh to be able to run tests twice - for v1beta1 and 3 2015-03-25 12:51:22 -07:00
Aly Fulton
6cd493849a Updated .travis.yml
This lets you use the Docker container infrastructure on Travis which has a much faster queue and performance. :)
2015-03-23 17:46:34 -04:00
Daniel Smith
936122bea0 test a travis change 2015-03-11 10:41:24 -07:00
Alex Mohr
389bf55966 Increase KUBE_TIMEOUT from 60s to 300s in .travis.yml. Our passing coverage runs
take 30-60s, but a number of them reach the 60s timeout and are
aborted.  It seems our Travis (and Shippable?) flakiness is
self-inflicted due to too-short timeouts?
2015-03-09 15:25:50 -07:00
Jeff Grafton
fbd11a1a23 Renable code coverage collection in unit tests, including on Travis.
When code coverage is not being collected, just issue a single 'go test'
command, as is already done. Go will internally parallize execution.

When code coverage is being collected, it is necessary to issue separate
'go test' commands for each package, since Go does not support
collecting coverage across packages. Using xargs -P will parallelize
these invocations, however, speeding up test execution.
The number of simultaneous processes to use can be specified with
KUBE_COVERPROCS.

Update Travis config to pass along the number of CPUs to use for running
tests.
2015-03-02 13:04:13 -08:00
Jeff Grafton
0f2e9dbac8 Revert "Use goveralls to report coverage results from Travis."
Revert "Produce a combined coverage report when running Go unit tests."

These caused unit tests to run very slowly, causing problems with
Travis.
2015-02-23 14:35:48 -08:00
Jeff Grafton
c669c63ff3 Use goveralls to report coverage results from Travis. 2015-02-19 17:49:42 -08:00
Clayton Coleman
a28d028cce Set max parallel builds on travis 2015-01-30 19:41:53 -05:00
Jeff Lowdermlk
250c948ae7 Autogenerate markdown docs for kubectl
Add test to verify generated docs are up to date.
2015-01-14 13:21:14 -08:00
Daniel Smith
6cd37637f5 Merge pull request #3365 from smarterclayton/test_coverage
Reenable coverage and race detection on Travis
2015-01-09 16:35:18 -08:00
Dawn Chen
386f23acff Remove go 1.2 from travis-ci 2015-01-09 15:03:24 -08:00
Clayton Coleman
dcd11761e7 Reenable Coverage and Race detection for travis and integration test 2015-01-09 13:16:30 -05:00
Dawn Chen
239f25c30a Remove dependency of podex from travis config 2015-01-06 15:42:12 -08:00
Daniel Smith
aca3a96246 Add go1.4; fix cover path for real. 2014-12-11 16:11:04 -08:00
Brian Grant
2ac8400cb2 Add API documentation pre-commit hook. 2014-11-20 20:25:44 +00:00
Brendan Burns
115869c0c7 Stop running benchmarks for every travis run. They're flaky. 2014-11-03 13:39:16 -08:00
Joe Beda
5d33ce46cc Rework hack/ and build/ directories.
* Rewrite a bunch of the hack/ directory with modular reusable bash libraries.
* Have 'build/*' build on 'hack/*'.  The stuff in build now just runs hack/* in a docker container.
* Use a docker data container to enable faster incremental builds.
* Standardize output to _output/{local,dockerized}/bin/OS/ARCH/*.  This regularized placement makes cross compilation work.
* Move travis specific scripts under hack/travis

With new dockerized incremental builds, I can do a no-op `make quick-release` in ~30s.  This is a significant improvement.
2014-11-01 17:56:41 -07:00
Johan Euphrosine
8f40d603f9 podex: add build to travis 2014-10-02 18:02:19 -07:00
Brendan Burns
a981ae5480 Merge pull request #1433 from lavalamp/fixVerifyFmt
Fix verify gofmt
2014-09-24 15:44:38 -07:00
Daniel Smith
78e7a18fd6 disable travis at tip 2014-09-24 15:34:49 -07:00
Daniel Smith
50eb2cf59c fix verify-gofmt's version detection 2014-09-24 14:25:21 -07:00
Clayton Coleman
9bbc572f36 Add benchmarks to Travis 2014-09-19 17:17:54 -04:00
Clayton Coleman
23307344ee Add round trip tests for default encoding
Turn down iterations a bit for speed
2014-09-16 17:27:59 -04:00
Brendan Burns
4a934427db Exclude vendored etcd. 2014-09-04 12:05:34 -07:00
Brendan Burns
3864cf453a Fix travis and cluster installs. 2014-09-04 10:31:09 -07:00
Brendan Burns
53e3bff464 Re-enable travis for Go tip 2014-09-04 09:56:28 -07:00
Daniel Smith
3354cfb6d5 Disable running travis at tip, it's finding a bunch of races that don't seem to be our fault 2014-09-02 11:34:54 -07:00
Filipe Brandenburger
510cc8ecdc Revert "change travis.yml to install godep"
This reverts commit 453c328fc9.

Having `godep` installed is not necessarily for build & test, only to
manage the dependencies under the Godeps/ tree.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 17:16:27 -07:00
Clayton Coleman
8a677b1226 Rename integration-test and update README 2014-08-23 11:44:21 -04:00
Nan Monnand Deng
453c328fc9 change travis.yml to install godep 2014-08-13 15:02:21 -04:00
Clayton Coleman
f9b6248f26 Travis should test that build-go.sh generated something
Add a new hack/test-cmd.sh that tries to use the generated
executables in a meaningful way.  It does not require Docker
so as to be runnable in Travis
2014-07-28 15:23:17 -04:00
Clayton Coleman
9a9d140a8a -cover causes races in Go 1.2
Make -covermode=atomic the default until we drop 1.2 support
Enable Go 1.2 in Travis
2014-07-11 15:48:31 -04:00
Nan Deng
903c4a957c remove 1.2 2014-07-02 23:27:00 -07:00
Brendan Burns
e5f36b8ec1 Disable gofmt for non go1.2 or go1.3 2014-07-01 11:25:59 -07:00
Johan Euphrosine
74bc515172 travis: temporary disable tip
workaround gofmt failure, until #322 is in
2014-07-01 11:01:17 -07:00
Johan Euphrosine
d7b1562b45 travis: add go 1.3 target 2014-07-01 10:45:53 -07:00
Daniel Smith
06410321e3 Add script to verify all boilerplate; add line to make travis run it. 2014-06-23 13:50:14 -07:00
Johan Euphrosine
58bda7616e travis: add irc notifications 2014-06-12 17:36:39 -07:00
Johan Euphrosine
afc3fe7edf travis: explicit gopath 2014-06-12 16:07:44 -07:00
Johan Euphrosine
1b60c4d88f travis: fix path for integration 2014-06-12 16:05:05 -07:00
Johan Euphrosine
0d9280e168 travis: remove e2e test and set GOPATH for integration 2014-06-12 15:44:27 -07:00
Johan Euphrosine
0563f5d2b1 travis: fix integration test invocation 2014-06-12 15:40:08 -07:00