-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (34 loc) · 1.16 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
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: Create BaseX-DoTS test environment (Download & install BaseX, DoTS folder migration)
run: |
# TODO: move everything in a init.sh script in the future
cd .. &&
wget https://files.basex.org/releases/10.7/BaseX107.zip &&
unzip BaseX107.zip && rm -r BaseX107.zip &&
cd ./basex &&
chmod +x ./bin/basex &&
chmod +x ./bin/basexhttp &&
cp -r ../dots/ ./webapp/ &&
./bin/basex ./webapp/dots/scripts/dots_db_init.xq
- 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 like ./bin/basex in the future
./bin/basex ./webapp/dots/tests/launcher.xq