2019-10-09 20:31:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Fail on any errors
|
|
|
|
set -e
|
|
|
|
|
2019-10-17 20:17:39 +00:00
|
|
|
if [ -z "$GITHUB_WORKSPACE" ]; then
|
2019-10-09 20:31:42 +00:00
|
|
|
echo "Set the GITHUB_WORKSPACE env variable."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install root project dependencies
|
|
|
|
cd "$GITHUB_WORKSPACE"
|
|
|
|
npm run bootstrap
|
|
|
|
npm install --no-save 7zip-bin-linux app-builder-bin-linux
|
|
|
|
|
|
|
|
echo "Running the stuff"
|
|
|
|
npm test
|
2019-10-17 19:57:26 +00:00
|
|
|
|
|
|
|
# Log into snapcraft for publishing
|
|
|
|
echo "$SNAPCRAFT_LOGIN_FILE" > snapcraft.txt && snapcraft login --with snapcraft.txt
|
|
|
|
|
2019-10-09 20:31:42 +00:00
|
|
|
npm run app-release
|