Skip to content

Commit f0318a9

Browse files
committed
Issue #118: Update initialize script to add node-channel as well as the integration test for it
1 parent b3bbe00 commit f0318a9

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

initialize.sh

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ rm -rf tests-integration/rollup/dist
1616
rm -f tests-integration/rollup/package-lock.json
1717
rm -rf tests-integration/webpack/node_modules
1818
rm -rf tests-integration/webpack/dist
19-
rm -f tests-integration/rollup/package-lock.json
19+
rm -f tests-integration/webpack/package-lock.json
20+
rm -rf tests-integration/node-channel/node_modules
21+
rm -rf tests-integration/node-channel/dist
22+
rm -f tests-integration/node-channel/package-lock.json
23+
rm -rf tests-integration/node-channel/k6
2024

2125
echo "Installing packages for core..."
2226
cd core
@@ -51,7 +55,6 @@ npm ci
5155
echo "Building node-channel..."
5256
npm run build
5357

54-
5558
# Note we do install, we don't checkin package-lock here as otherwise npm will use cache (so something old) for these if
5659
# they were previously installed, can't have that with tests, they need to be reliable.
5760
echo ""
@@ -67,6 +70,21 @@ npm install
6770
echo "Building tests-integration/webpack..."
6871
npm run build
6972

73+
cd ../node-channel
74+
echo "Downloading and putting k6 in node-channel/k6 directory..."
75+
mkdir -p k6/tmp
76+
cd k6/tmp
77+
wget -c -O k6.tar.gz https://github.com/grafana/k6/releases/download/v0.50.0/k6-v0.50.0-linux-amd64.tar.gz
78+
tar xvf k6.tar.gz --strip-components=1
79+
chmod +x k6
80+
mv k6 ../
81+
cd ../../
82+
83+
echo "Installing packages for tests-integration/node-channel"
84+
npm install
85+
echo "Building tests-integration/node-channel..."
86+
npm run build
87+
7088
cd ../../
7189

7290
echo -e "\nInstallation success.\n"

0 commit comments

Comments
 (0)