Skip to content

Update launcher.xq

Update launcher.xq #51

Workflow file for this run

name: DoTS XQuery CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '11' # BaseX requiert Java
- name: CI Init (Download & install BaseX, DoTS folder migration)
run: |
# TODO: move everything in a init.sh script in the future
cd .. && ls -l
wget https://files.basex.org/releases/10.7/BaseX107.zip
unzip BaseX107.zip && rm -r BaseX107.zip && ls -l
cd ./basex && ls -l
chmod +x ./bin/basex
chmod +x ./bin/basexhttp
cp -r ../dots/ ./webapp/ && cd ./webapp/ && ls -l
- name: Start BaseX backend
run : |
cd ../basex/ &&
./bin/basexhttp &
sleep 2 &&
curl http://localhost:8080 -I
- name: Launch Tests
run : |
cd ../basex/ &&
ls -l &&
# init db dots
./bin/basex ./webapp/dots/scripts/dots_db_init.xq
# TODO : refactoring generic command with variables loke ./bin/basex in the future
./bin/basex ./webapp/dots/tests/launcher.xq