aboutsummaryrefslogtreecommitdiffstats
path: root/.build.yml
blob: 26daac9b8f792a8555a74b95d0252f91253977c0 (plain) (blame)
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
image: alpine/3.22
packages:
  - go
  - docker
  - docker-cli-compose
  - shadow-uidmap
sources:
  - https://git.sr.ht/~eugenetriguba/bolt
tasks:
  - setup: |
      curl -fsSL https://get.docker.com/rootless | sh
      cat >> ~/.docker_env << 'EOF'
      export PATH=$HOME/bin:$PATH
      export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
      EOF

  - test-sqlite3: |
      cd bolt
      source ~/.docker_env
      ./scripts/test-sqlite3.sh

  - test-postgresql: |
      cd bolt
      source ~/.docker_env
      ./scripts/test-postgresql.sh

  - test-mysql: |
      cd bolt
      source ~/.docker_env
      ./scripts/test-mysql.sh

  - test-mssql: |
      cd bolt
      source ~/.docker_env
      ./scripts/test-mssql.sh

  - combine-coverage: |
      cd bolt
      ./scripts/combine-coverage.sh