install static webserver for server symlinked riot on CI
This commit is contained in:
parent
2d848bba29
commit
645a9d836f
2 changed files with 19 additions and 7 deletions
24
test/end-to-end-tests/riot/install.sh
Executable file → Normal file
24
test/end-to-end-tests/riot/install.sh
Executable file → Normal file
|
@ -2,6 +2,14 @@
|
|||
set -e
|
||||
RIOT_BRANCH=develop
|
||||
|
||||
with_riot=1
|
||||
|
||||
for i in $@; do
|
||||
if [ "$i" == "--without-riot" ] ; then
|
||||
with_riot=0
|
||||
fi
|
||||
done
|
||||
|
||||
BASE_DIR=$(cd $(dirname $0) && pwd)
|
||||
cd $BASE_DIR
|
||||
# Install ComplexHttpServer (a drop in replacement for Python's SimpleHttpServer
|
||||
|
@ -26,10 +34,12 @@ if [ -d $BASE_DIR/riot-web ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
|
||||
unzip -q riot.zip
|
||||
rm riot.zip
|
||||
mv riot-web-${RIOT_BRANCH} riot-web
|
||||
cd riot-web
|
||||
yarn install
|
||||
yarn run build
|
||||
if [ $with_riot -eq 1 ]; then
|
||||
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
|
||||
unzip -q riot.zip
|
||||
rm riot.zip
|
||||
mv riot-web-${RIOT_BRANCH} riot-web
|
||||
cd riot-web
|
||||
yarn install
|
||||
yarn run build
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue