diff --git a/.gitea/workflows/ci-basex.yaml b/.gitea/workflows/ci-basex.yaml index 508adfe..9617331 100644 --- a/.gitea/workflows/ci-basex.yaml +++ b/.gitea/workflows/ci-basex.yaml @@ -45,5 +45,5 @@ jobs: ls -l /usr/local/basex/lib/custom - name: run tests run: | - basex -t src/test + basex -Wt src/test diff --git a/.gitea/workflows/trigger/release b/.gitea/workflows/trigger/release index 02450c9..d573dfe 100644 --- a/.gitea/workflows/trigger/release +++ b/.gitea/workflows/trigger/release @@ -1,2 +1,2 @@ 30/1/2025................. -..lgnfjfggfgxhcsxwnnd \ No newline at end of file +..lgnfjfggfgxhcsxwnndc \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index d43a937..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: Run BaseX Tests - -on: - workflow_dispatch: # Enables manual trigger - pull_request: - branches: - - main - - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Java - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'temurin' - - - name: Install BaseX - run: | - wget http://files.basex.org/releases/10.7/BaseX107.zip - unzip BaseX107.zip - - - name: Run BaseX Tests - run: 'basex/bin/basex -t .' \ No newline at end of file diff --git a/scripts/add-to-custom.xq b/scripts/add-to-custom.xq index 70d4050..c68c59b 100644 --- a/scripts/add-to-custom.xq +++ b/scripts/add-to-custom.xq @@ -1,14 +1,16 @@ import module namespace build = 'urn:quodatum:build1' at 'build.xqm'; -declare variable $base:= file:resolve-path("../",static-base-uri())=>trace("base "); +declare variable $base:= file:parent(db:system()/globaloptions/dbpath/string()); + -declare variable $custom:= "/usr/local/basex/lib/custom/"; " copy.. ", -file:copy(file:resolve-path("dist/pdfbox-3.0.4.fat.jar",$base)=>trace("Source: ") - ,$custom=>trace("Dest: ")), -file:list($custom), +file:copy( + "dist/pdfbox-3.0.4.fat.jar"=>trace("Source: "), + file:resolve-path("lib/custom",$base)=>trace("Dest: ") + ), +file:list(file:resolve-path("lib/custom",$base)), " " diff --git a/scripts/install.bxs b/scripts/install.bxs index fedcb85..015241c 100644 --- a/scripts/install.bxs +++ b/scripts/install.bxs @@ -5,5 +5,5 @@ XQUERY "Repo install.." REPO INSTALL dist/pdfbox-3.0.4.fat.jar REPO LIST XQUERY "add-to-custom.." -#RUN add-to-custom.xq +RUN add-to-custom.xq #TEST src/test