mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Do a shallow clone for Docker tests. (#42966)
* Do a shallow clone for docker tests. * Remove the 'pull' step from the Docker files.
This commit is contained in:
parent
3e05aa6f0d
commit
1f6a8d7aee
@ -1,8 +1,7 @@
|
||||
FROM node:current
|
||||
RUN npm install -g @microsoft/rush
|
||||
RUN git clone https://github.com/Azure/azure-sdk-for-js.git /azure-sdk
|
||||
RUN git clone --depth 1 https://github.com/Azure/azure-sdk-for-js.git /azure-sdk
|
||||
WORKDIR /azure-sdk
|
||||
RUN git pull
|
||||
RUN rush update
|
||||
WORKDIR /azure-sdk/sdk/core/core-http
|
||||
# Sync up all TS versions used internally so they're all linked from a known location
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
FROM node:current
|
||||
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools
|
||||
RUN git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools
|
||||
ENV PATH=/depot_tools:$PATH
|
||||
WORKDIR /
|
||||
RUN mkdir devtools
|
||||
|
||||
@ -4,9 +4,8 @@ ENV CI=true
|
||||
ENV TF_BUILD=true
|
||||
# Download repo version, sets up better layer caching for the following clone
|
||||
ADD https://api.github.com/repos/OfficeDev/office-ui-fabric-react/git/ref/heads/master version.json
|
||||
RUN git clone https://github.com/OfficeDev/office-ui-fabric-react.git /office-ui-fabric-react
|
||||
RUN git clone --depth 1 https://github.com/OfficeDev/office-ui-fabric-react.git /office-ui-fabric-react
|
||||
WORKDIR /office-ui-fabric-react
|
||||
RUN git pull
|
||||
WORKDIR /
|
||||
COPY --from=typescript/typescript /typescript/typescript-*.tgz typescript.tgz
|
||||
WORKDIR /office-ui-fabric-react
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
FROM node:current
|
||||
RUN npm i -g yarn --force
|
||||
RUN git clone https://github.com/prettier/prettier.git /prettier
|
||||
RUN git clone --depth 1 https://github.com/prettier/prettier.git /prettier
|
||||
WORKDIR /prettier
|
||||
RUN git pull
|
||||
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
|
||||
RUN mkdir /typescript
|
||||
RUN tar -xzvf /typescript.tgz -C /typescript
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
FROM node:current
|
||||
RUN git clone https://github.com/microsoft/pyright.git /pyright
|
||||
RUN git clone --depth 1 https://github.com/microsoft/pyright.git /pyright
|
||||
WORKDIR /pyright
|
||||
RUN git pull
|
||||
RUN npm i
|
||||
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
|
||||
RUN npm install /typescript.tgz --exact --ignore-scripts --save-dev
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
FROM node:10
|
||||
RUN git clone https://github.com/ReactiveX/rxjs /rxjs
|
||||
RUN git clone --depth 1 https://github.com/ReactiveX/rxjs /rxjs
|
||||
WORKDIR /rxjs
|
||||
RUN git pull
|
||||
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
|
||||
RUN mkdir /typescript
|
||||
RUN tar -xzvf /typescript.tgz -C /typescript
|
||||
|
||||
@ -3,9 +3,8 @@ FROM node:10
|
||||
RUN apt-get update
|
||||
RUN apt-get install libsecret-1-dev libx11-dev libxkbfile-dev -y
|
||||
RUN npm i -g yarn --force
|
||||
RUN git clone https://github.com/microsoft/vscode.git /vscode
|
||||
RUN git clone --depth 1 https://github.com/microsoft/vscode.git /vscode
|
||||
WORKDIR /vscode
|
||||
RUN git pull
|
||||
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
|
||||
WORKDIR /vscode/build
|
||||
RUN yarn add typescript@/typescript.tgz
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
FROM node:current
|
||||
RUN npm install -g yarn lerna --force
|
||||
RUN git clone https://github.com/vuejs/vue-next.git /vue-next
|
||||
RUN git clone --depth 1 https://github.com/vuejs/vue-next.git /vue-next
|
||||
WORKDIR /vue-next
|
||||
RUN git pull
|
||||
COPY --from=typescript/typescript /typescript/typescript-*.tgz typescript.tgz
|
||||
# Sync up all TS versions used internally to the new one
|
||||
RUN yarn add typescript@./typescript.tgz --exact --dev --ignore-scripts -W
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
# node-pty doesn't build on node 12 right now, so we lock to 10
|
||||
FROM node:10
|
||||
RUN git clone https://github.com/xtermjs/xterm.js.git /xtermjs
|
||||
RUN git clone --depth 1 https://github.com/xtermjs/xterm.js.git /xtermjs
|
||||
WORKDIR /xtermjs
|
||||
RUN git pull
|
||||
COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
|
||||
RUN mkdir /typescript
|
||||
RUN tar -xzvf /typescript.tgz -C /typescript
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user