-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (36 loc) · 1.2 KB
/
dots-CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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