File tree 4 files changed +32
-3
lines changed
baselines/reference/docker
4 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ tests/webTestServer.js.map
34
34
tests /webhost /* .d.ts
35
35
tests /webhost /webtsc.js
36
36
tests /cases /** /* .js
37
+ ! tests /cases /docker /* .js /
37
38
tests /cases /** /* .js.map
38
39
* .config
39
40
scripts /debug.bat
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ ${sanitizeDockerfileOutput(result.stderr.toString())}`;
157
157
}
158
158
159
159
function sanitizeDockerfileOutput ( result : string ) : string {
160
- return stripAbsoluteImportPaths ( sanitizeTimestamps ( stripRushStageNumbers ( stripANSIEscapes ( normalizeNewlines ( result ) ) ) ) ) ;
160
+ return stripAbsoluteImportPaths ( sanitizeTimestamps ( sanitizeVersionSpecifiers ( stripRushStageNumbers ( stripANSIEscapes ( normalizeNewlines ( result ) ) ) ) ) ) ;
161
161
}
162
162
163
163
function normalizeNewlines ( result : string ) : string {
@@ -176,10 +176,14 @@ function sanitizeTimestamps(result: string): string {
176
176
return result . replace ( / \[ \d ? \d : \d \d : \d \d ( A | P ) M \] / g, "[XX:XX:XX XM]" )
177
177
. replace ( / \d + ( \. \d + ) ? s e c o n d s ? / g, "? seconds" )
178
178
. replace ( / \d + ( \. \d + ) ? m i n u t e s ? / g, "" )
179
- . replace ( / \d + ( \. \d + ) ? s / g, "?s" )
180
- . replace ( / \d + .\d + .\d + - i n s i d e r s .\d \d \d \d \d \d \d \d / g, "X.X.X-insiders.xxxxxxxx" ) ;
179
+ . replace ( / \d + ( \. \d + ) ? s / g, "?s" ) ;
181
180
}
182
181
182
+ function sanitizeVersionSpecifiers ( result : string ) : string {
183
+ return result
184
+ . replace ( / \d + .\d + .\d + - i n s i d e r s .\d \d \d \d \d \d \d \d / g, "X.X.X-insiders.xxxxxxxx" )
185
+ . replace ( / @ \d + \. \d + \. \d + / g, "@X.X.X" ) ;
186
+ }
183
187
184
188
/**
185
189
* Import types and some other error messages use absolute paths in errors as they have no context to be written relative to;
Original file line number Diff line number Diff line change
1
+ Exit Code: 0
2
+ Standard output:
3
+
4
+ >
[email protected] build /xtermjs
5
+ > tsc -b ./tsconfig.all.json
6
+
7
+
8
+
9
+
10
+ Standard error:
Original file line number Diff line number Diff line change
1
+ # node-pty doesn't build on node 12 right now, so we lock to 8 - the version xterm itself tests against :(
2
+ FROM node:8
3
+ RUN git clone https://github.com/xtermjs/xterm.js.git /xtermjs
4
+ WORKDIR /xtermjs
5
+ RUN git pull
6
+ COPY --from=typescript/typescript /typescript/typescript-*.tgz /typescript.tgz
7
+ RUN mkdir /typescript
8
+ RUN tar -xzvf /typescript.tgz -C /typescript
9
+ RUN npm i typescript@/typescript/package
10
+ RUN npm install
11
+ # Set entrypoint back to bash (`node` base image made it `node`)
12
+ ENTRYPOINT [ "/bin/bash" , "-c" , "exec \" ${@:0}\" ;" ]
13
+ # Build
14
+ CMD npm run build
You can’t perform that action at this time.
0 commit comments