Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use image based cache for windows BuildKite
- Loading branch information
1 parent
a084024
commit 6638f2e
Showing
6 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3' | ||
services: | ||
windows-env: | ||
build: | ||
context: ../../ | ||
dockerfile: ./.buildkite/dockerfiles/windows-env.Dockerfile | ||
windows-test: | ||
build: | ||
context: ../../ | ||
dockerfile: ./.buildkite/dockerfiles/windows-test.Dockerfile | ||
args: | ||
COMMIT_SHA: "${BUILDKITE_COMMIT}" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use the a previous image as source. | ||
# gcr.io/internal-200822 is the Google Cloud container registry for Angular tooling. | ||
FROM gcr.io/internal-200822/angular-windows:master | ||
WORKDIR /src | ||
|
||
# Copy package.json and yarn.lock before the other files. | ||
# This allows docker to cache these steps even if source files change. | ||
COPY ./package.json /src/package.json | ||
COPY ./yarn.lock /src/yarn.lock | ||
RUN yarn install --frozen-lockfile --non-interactive --network-timeout 100000 | ||
|
||
# Update image git repo. | ||
ARG COMMIT_SHA | ||
RUN git fetch -v origin %COMMIT_SHA% | ||
RUN git checkout -f %COMMIT_SHA% | ||
|
||
# Setup. | ||
COPY .circleci/bazel.rc /etc/bazel.bazelrc | ||
|
||
# Run tests. | ||
RUN yarn bazel test //tools/ts-api-guardian:all --noshow_progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
steps: | ||
- label: windows-test | ||
commands: | ||
- "yarn install --frozen-lockfile --non-interactive --network-timeout 100000" | ||
- "yarn bazel test //tools/ts-api-guardian:all --noshow_progress" | ||
plugins: | ||
- docker#v2.1.0: | ||
image: "filipesilva/node-bazel-windows:0.0.2" | ||
- docker-compose#v2.6.0: | ||
build: windows-test | ||
config: .buildkite/dockerfiles/docker-compose.yml | ||
agents: | ||
windows: true | ||
- wait | ||
- label: windows-update-image | ||
branches: master | ||
plugins: | ||
- docker-compose#v2.6.0: | ||
push: windows-test:gcr.io/internal-200822/angular-windows:master | ||
config: .buildkite/dockerfiles/docker-compose.yml | ||
agents: | ||
windows: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters