Skip to content

Commit f26d97f

Browse files
authored
Adding tests for PG - just to make sure it can generate files okay (#350)
1 parent edf39e7 commit f26d97f

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

scripts/linux/buildPG.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ if [ $ret -ne 0 ]; then
2020
exit 1
2121
fi
2222

23+
cd commandLine/bin/
24+
25+
echo "Testing project generation linux 64";
26+
chmod +x projectGenerator
27+
./projectGenerator --recursive -plinux64 -tvscode -o../../../../ ../../../../examples/
28+
errorcode=$?
29+
if [[ $errorcode -ne 0 ]]; then
30+
exit $errorcode
31+
fi
32+
2333
if [[ -z "${GA_CI_SECRET}" ]] ; then
2434
echo "Not on main repo skipping sign and upload";
2535
else

scripts/osx/buildPG.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,15 @@ if [ $ret -ne 0 ]; then
155155
exit 1
156156
fi
157157

158-
158+
cd commandLine/bin/
159+
160+
echo "Testing project generation osx";
161+
chmod +x projectGenerator
162+
./projectGenerator --recursive -posx -o../../../../ ../../../../examples/
163+
errorcode=$?
164+
if [[ $errorcode -ne 0 ]]; then
165+
exit $errorcode
166+
fi
159167

160168
# install electron sign globally
161169
sudo npm install -g electron-osx-sign
@@ -191,4 +199,4 @@ rm -rf scripts/*.p12 2> /dev/null
191199
# pwd
192200
# ls -alfR
193201
# cd ..
194-
# pwd
202+
# pwd

0 commit comments

Comments
 (0)