From 037687ef09f6761e85a448dd3d286a33f25f31d9 Mon Sep 17 00:00:00 2001 From: Marko Strukelj Date: Mon, 5 Feb 2024 19:02:59 +0100 Subject: [PATCH] Try fix nodejs native rollup package unavailability Signed-off-by: Marko Strukelj --- .travis.yml | 5 +++++ .travis/build-s390x.sh | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.travis.yml b/.travis.yml index f958dbfc..0184e4d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,11 @@ addons: apt: packages: - maven +before_install: + - sudo apt install curl -y + - curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - + - sudo apt-get install nodejs -y + - sudo npm install -g pnpm env: global: - NODE_OPTIONS="--dns-result-order=ipv4first" diff --git a/.travis/build-s390x.sh b/.travis/build-s390x.sh index 0c685497..3bc04c74 100755 --- a/.travis/build-s390x.sh +++ b/.travis/build-s390x.sh @@ -11,6 +11,22 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/s390x-linux-gnu/jni cd target git clone -b 23.0.5 https://github.com/keycloak/keycloak.git cd keycloak + +cd js +rm pnpm-lock.yaml +head -n -2 package.json > tmp.txt +echo ' }, + "resolutions": { + "rollup": "npm:@rollup/wasm-node" + }, + "overrides": { + "rollup": "npm:@rollup/wasm-node" + } +}' >> tmp.txt +mv tmp.txt package.json +pnpm install --no-frozen-lockfile +cd .. + mvn -e -pl quarkus/deployment,quarkus/dist -am -DskipTests clean install cd quarkus/container cp ../dist/target/keycloak-*.tar.gz .