fix(typescript-dto): Check that output is correct before continuing
It's still strange as with -e/-u flag of script, build script should exit in case of error Change-Id: I9314ef7d8df68927d4a710cef8e9366d3582d83d Signed-off-by: Florent Benoit <fbenoit@redhat.com>7.20.x
parent
093fe75384
commit
1057eaae19
|
|
@ -20,6 +20,12 @@ docker run -i --rm -v "$HOME/.m2:/root/.m2" \
|
|||
/bin/bash -c "mvn -q -U -DskipTests=true -Dfindbugs.skip=true -Dskip-validate-sources install \
|
||||
&& cat target/dts-dto-typescript.d.ts" >> index.d.ts
|
||||
|
||||
CHE_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec -f ../pom.xml)
|
||||
# validate that index.d.ts has kind of valid output
|
||||
if ! grep "export namespace" index.d.ts; then
|
||||
echo "Invalid output generated for index.d.ts"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker build -t eclipse-che-ts-api --build-arg CHE_VERSION=${CHE_VERSION} --build-arg NPM_AUTH_TOKEN=${NPM_AUTH_TOKEN} .
|
||||
CHE_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args="\${project.version}" --non-recursive exec:exec -f ../pom.xml)
|
||||
|
||||
docker build -t eclipse-che-ts-api --build-arg CHE_VERSION="${CHE_VERSION}" --build-arg NPM_AUTH_TOKEN="${NPM_AUTH_TOKEN}" .
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<artifactId>maven-depmgt-pom</artifactId>
|
||||
<groupId>org.eclipse.che.depmgt</groupId>
|
||||
<version>7.8.0-SNAPSHOT</version>
|
||||
<groupId>org.eclipse.che.parent</groupId>
|
||||
<version>7.19.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>dts-dto-typescript</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Che TypeScript DTO</name>
|
||||
<properties>
|
||||
<che.version>7.8.0-SNAPSHOT</che.version>
|
||||
<che.version>7.19.0-SNAPSHOT</che.version>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@eclipse-che/api",
|
||||
"version": "7.4.0-SNAPSHOT",
|
||||
"version": "7.19.0-SNAPSHOT",
|
||||
"description": "Eclipse Che DTO API",
|
||||
"types": "index.d.ts",
|
||||
"license": "EPL-2.0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue