* Prepare travis is tests * Fix ffmpeg travis source * Trying xenial * Move shell scripts * Upload video assets * Upload video assets * Change text input method * Add ui test docker support * Fix travis docker build * Fix asset uploader * Fix dockerfile * Update dockerfile * Change writeText behavior * Fix type error * Fix exit codes * Fix types * fix upload * Fix writeText * Fix argument name * Add test scenarios * Enable vnc and change mqtt host
27 lines
294 B
Bash
Executable File
27 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
ORIGINAL_DIR=`pwd`
|
|
DIR=build/clean
|
|
|
|
rm -rf "$DIR" || echo "Directory did not exist"
|
|
mkdir -p "$DIR"
|
|
|
|
git clone .git "$DIR"
|
|
cd $DIR
|
|
|
|
# App
|
|
cd app
|
|
yarn
|
|
cd ..
|
|
|
|
# Build
|
|
yarn
|
|
yarn build
|
|
rm -rf node_modules
|
|
yarn install --production
|
|
|
|
rm -rf app/node_modules
|
|
|
|
cd "$ORIGINAL_DIR"
|