Skip to content

Commit

Permalink
bazel(ci): rework Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 7, 2023
1 parent 69317bc commit 45d0aa0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions bazel/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ RUN bazel build \
--host_javabase=@local_jdk//:jdk \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
...
ortools/... examples/...

FROM build AS test
RUN bazel test \
-c opt \
--host_javabase=@local_jdk//:jdk \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
...
ortools/... examples/...
4 changes: 2 additions & 2 deletions bazel/docker/archlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ RUN bazel build \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
...
ortools/... examples/...

FROM build AS test
RUN bazel test \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
...
ortools/... examples/...
4 changes: 2 additions & 2 deletions bazel/docker/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ RUN bazel build \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
...
ortools/... examples/...

FROM build AS test
RUN bazel test \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
...
ortools/... examples/...
4 changes: 2 additions & 2 deletions bazel/docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ RUN bazel build \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
...
ortools/... examples/...

FROM build AS test
RUN bazel test \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
...
ortools/... examples/...
4 changes: 2 additions & 2 deletions bazel/docker/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ RUN bazel build \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
...
ortools/... examples/...

FROM build AS test
RUN bazel test \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
...
ortools/... examples/...
4 changes: 2 additions & 2 deletions bazel/docker/opensuse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ RUN bazel6 build \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
...
ortools/... examples/...

FROM build AS test
RUN bazel6 test \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
...
ortools/... examples/...
4 changes: 2 additions & 2 deletions bazel/docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ RUN bazel build \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--subcommands=true \
...
ortools/... examples/...

FROM build AS test
RUN bazel test \
-c opt \
--action_env=BAZEL_CXXOPTS="-std=c++17" \
--test_output=errors \
...
ortools/... examples/...

0 comments on commit 45d0aa0

Please sign in to comment.