Skip to content

Commit

Permalink
Try fix nodejs native rollup package unavailability
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Strukelj <marko.strukelj@gmail.com>
  • Loading branch information
mstruk committed Feb 5, 2024
1 parent 6bbb28a commit 037687e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 16 additions & 0 deletions .travis/build-s390x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit 037687e

Please sign in to comment.