Update launcher.xq #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 && | |
# TODO : refactoring generic command with variables loke ./bin/basex in the future | |
./bin/basex ./webapp/dots/tests/launcher.xq | |