File tree Expand file tree Collapse file tree 3 files changed +17
-102
lines changed
Expand file tree Collapse file tree 3 files changed +17
-102
lines changed Original file line number Diff line number Diff line change @@ -166,45 +166,6 @@ build:linux:
166166 # Runs on tag pipeline where the tag is a prerelease or release version
167167 - if : $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
168168
169- build:windows :
170- stage : build
171- needs : []
172- allow_failure : true
173- tags :
174- - windows
175- variables :
176- # Only x64 architecture is needed
177- npm_config_arch : " x64"
178- RUST_BACKTRACE : " 1"
179- LIBCLANG_PATH : " C:\\ Program Files\\ LLVM\\ bin"
180- before_script :
181- - mkdir -Force "$CI_PROJECT_DIR/tmp"
182- - Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
183- script :
184- - ./scripts/choco-install.ps1
185- - refreshenv
186- - npm install --ignore-scripts
187- - $env:Path = "$(npm root)\.bin;" + $env:Path
188- - npm run prebuild --verbose -- --production
189- - npm test -- --ci --coverage
190- - npm run bench
191- artifacts :
192- when : always
193- reports :
194- junit :
195- - ./tmp/junit/junit.xml
196- coverage_report :
197- coverage_format : cobertura
198- path : ./tmp/coverage/cobertura-coverage.xml
199- metrics : ./benches/results/metrics.txt
200- paths :
201- - ./prebuild/
202- rules :
203- # Runs on staging commits and ignores version commits
204- - if : $CI_COMMIT_BRANCH == 'staging' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
205- # Runs on tag pipeline where the tag is a prerelease or release version
206- - if : $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
207-
208169build:macos :
209170 stage : build
210171 needs : []
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,7 +7,23 @@ import process from 'process';
77import path from 'path' ;
88
99interface Exec {
10- execvpe ( cmd : string , argv : Array < string > , envv : Array < string > ) : undefined ;
10+ /**
11+ * This calls the provided command with the provided arguments. The env variable are also provided in the format of
12+ * 'key=value'. If the call fails in any way then it just throws the error code 'Error('number')`. The most common
13+ * would be an `ENOENT` in the form of `Error('2')`.
14+ *
15+ * This will replace the current process with the provided cmd. From the callers perspective this will seem really odd
16+ * and never return. The call can not return so and code after it is unreachable, hence the `never` return type. So
17+ * treat this function as a termination of the process, much like a `process.exit()` call.
18+ *
19+ * The exec'ed program will not assume the environment of the current process. This can allow isolation but if you
20+ * want to have the current environment then you'll have to pass it in manually through the envp parameter.
21+ *
22+ * @param cmd - the command to call, this can be anything in the PATH or a specific file
23+ * @param argv - The args to be passed to the command
24+ * @param envp - env variables that you want to provide. These are formatted as an array of 'key=value'
25+ */
26+ execvpe ( cmd : string , argv : Array < string > , envp : Array < string > ) : never ;
1127}
1228
1329const projectRoot = path . join ( __dirname , '../' ) ;
You can’t perform that action at this time.
0 commit comments