1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
Commit graph

19 commits

Author SHA1 Message Date
Kubernetes Prow Robot
27b5ef9680
Merge pull request #341 from marquiz/devel/prow-e2e
scripts/test-infra: add script for end-to-end testing
2020-08-28 08:33:49 -07:00
Carlos Eduardo Arango Gutierrez
b852e5cce5
Update go to 1.14.7
Bumb golang version to 1.14.7

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-08-28 08:39:23 -05:00
Markus Lehtonen
05f5d2a88a scripts/test-infra: add script for end-to-end testing
Add a new script for running end-to-end tests. Implement a Makefile rule
for polling the container image. We need this for prow as there is no
other way for syncing the jobs (e2e postsubmit job must wait until the
image-pushing job has built and published the image). This is
implemented in the Makefile as all the image-related variables are also
defined/available there.

Also, adapt the TravisCI config to use the new script.
2020-08-27 14:48:37 +03:00
Markus Lehtonen
33eabbdd22 scripts: add scripts for kubernetest test-infra jobs
A step towards moving away from TravisCI.
2020-08-11 15:55:31 +03:00
Alexander Kanevskiy
eb8fe6393a Update builder image to Go 1.13.12
Go versions after 1.13.7 contain fix for CVE-2020-7919
2020-07-10 14:24:01 +03:00
Markus Lehtonen
a7dc63e091 travis: add ci-lint check
Build fails if lint does not pass muster.
2020-05-20 21:48:06 +03:00
Markus Lehtonen
3185393141 travis: verify gofmt 2020-05-19 14:29:55 +03:00
Markus Lehtonen
362c0e4a0e travis: enable e2e-test-config
Use the contents of 'E2E_TEST_CONFIG_DATA' environment variable as the
e2e-test-config, enabling wider end-to-end test converage (assuming
E2E_TEST_CONFIG_DATA is properly populated).
2020-02-28 10:45:08 +02:00
Carlos Eduardo Arango Gutierrez
3e1e1a944b
Update go version to 1.13.5
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-02-05 16:15:44 -05:00
Markus Lehtonen
a332f8bae8 travis: run e2e tests on master branch
Assumes the test cluster to be hosted in AWS. The following environment
variables need to be properly configured in the CI in order to
successfully run the tests:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
KUBECONFIG_AWS

Also, the following are probably needed in order for the script to be be
able to push the container image to the remote registry:
IMAGE_REPO
IMAGE_REPO_PASSWORD
IMAGE_REPO_USER
2019-12-17 15:39:24 +02:00
Markus Lehtonen
d54881b6c8 travis: unify indentation in .travis.yml 2019-06-24 11:09:45 +03:00
Markus Lehtonen
7054e7dd43 travis: enable pushing of release images
This patch enables automatic pushes of release images whenever a new git
tag is created. This works as expected as the $TRAVIS_BRANCH variable is
set to $TRAVIS_TAG when builds are triggered by a new tag.
2019-06-24 11:00:53 +03:00
Markus Lehtonen
3088382772 travis: add deploy step to automatically push the container image
Configure .travis.yml to automatically push builds on the master branch
to the container image registry (quay.io by default). This will
automatically make the latest "experimental" version of NFD, built from
the tip of the master branch, available in the upstream Docker
repository.

IMAGE_REPO_USER and IMAGE_REPO_PASSWORD environment variables must be
defined in the travis repositorys settings in order for the deployment
step to be triggered.
2019-06-18 16:23:25 +03:00
Markus Lehtonen
118146a1ee travis: build image using make
Better to use the same method that developers are supposed to use. Plus,
this creates runnable images (as NFD version is defined).
2019-06-18 16:23:25 +03:00
Markus Lehtonen
fa4d9b76e9 travis: run in minimal environment and drop sudo
Default language is ruby and we don't need that. The minimal environment
is enough. Also, no su privileges are needed to run the build.
2019-04-27 12:49:48 +03:00
Markus Lehtonen
bff94eb107 Utilize multi-stage build to reduce docker image size
This reduces the size of the Docker image from ca. 1.2GB down to about
750MB.

Also, move unit tests from .travis.yml to Dockerfile. Final production
image is not able to run unit tests anymore, as sources are missing from
there.
2018-09-24 10:15:23 +03:00
Markus Lehtonen
b999a1a6f4 Fix unit tests (#98)
* Update unit tests

Make the unit tests pass, again.

* Update project dependencies

* Enable unittests in travis
2018-03-01 10:49:57 -08:00
Balaji Subramaniam
41abde10b3 Integrated with travis-ci. (#15)
- Added .travis.yml.
- Updated readme to show build status.
2016-09-23 14:08:03 -07:00
Connor Doyle
4bd63cb7f3 Automatically determine git version for labels.
- Added git version to published labels.
- Minor formatting fix in job template.
- Added .travis.yml and added build status image link to README.
- Added .gitignore.
2016-08-30 14:34:58 -07:00