Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d6f0e77f
Commit
d6f0e77f
authored
Feb 02, 2018
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bzl: make integration tests actually work
parent
c02b784b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
.bazelrc
build/root/.bazelrc
+9
-1
Makefile
build/root/Makefile
+3
-2
WORKSPACE
build/root/WORKSPACE
+1
-1
No files found.
build/root/.bazelrc
View file @
d6f0e77f
startup --expand_configs_in_place
# Show us information about failures.
# Show us information about failures.
build --verbose_failures
build --verbose_failures
test --test_output=errors
test --test_output=errors
...
@@ -13,4 +15,10 @@ build --sandbox_tmpfs_path=/tmp
...
@@ -13,4 +15,10 @@ build --sandbox_tmpfs_path=/tmp
build --sandbox_fake_username
build --sandbox_fake_username
# Enable go race detection.
# Enable go race detection.
test --features=race
test:unit --features=race
test:unit --test_tag_filters=-e2e,-integration
test:unit --flaky_test_attempts=3
build:integration --build_tag_filters=integration
test:integration --jobs 4
test:integration --test_tag_filters=integration
build/root/Makefile
View file @
d6f0e77f
...
@@ -544,7 +544,7 @@ else
...
@@ -544,7 +544,7 @@ else
# We don't want to build any of the release artifacts when running tests.
# We don't want to build any of the release artifacts when running tests.
# Some things in vendor don't build due to empty target lists for cross-platform rules.
# Some things in vendor don't build due to empty target lists for cross-platform rules.
bazel-test
:
bazel-test
:
bazel
test
--
build_tag_filters
=
-e2e
,-integration
--test_tag_filters
=
-e2e
,-integration
--flaky_test_attempts
=
3
--
\
bazel
test
--
config
=
unit
--
\
//...
\
//...
\
//hack:verify-all
\
//hack:verify-all
\
-//build/...
\
-//build/...
\
...
@@ -562,7 +562,8 @@ bazel-test-integration:
...
@@ -562,7 +562,8 @@ bazel-test-integration:
@
echo
"
$$
BAZEL_TEST_INTEGRATION_HELP_INFO"
@
echo
"
$$
BAZEL_TEST_INTEGRATION_HELP_INFO"
else
else
bazel-test-integration
:
bazel-test-integration
:
bazel
test
//test/integration/...
bazel build
--config
integration //test/integration/...
bazel
test
--config
integration //test/integration/...
endif
endif
ifeq
($(PRINT_HELP),y)
ifeq
($(PRINT_HELP),y)
...
...
build/root/WORKSPACE
View file @
d6f0e77f
...
@@ -38,7 +38,7 @@ http_archive(
...
@@ -38,7 +38,7 @@ http_archive(
load("@bazel_skylib//:lib.bzl", "versions")
load("@bazel_skylib//:lib.bzl", "versions")
versions.check(minimum_bazel_version = "0.
8
.0")
versions.check(minimum_bazel_version = "0.
10
.0")
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains", "go_download_sdk")
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains", "go_download_sdk")
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories", "docker_pull")
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories", "docker_pull")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment