aboutsummaryrefslogtreecommitdiffstats
path: root/.build.yml
blob: f80974d2f8d703a9d1e5bfbc1e8105f83334e4ef (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
40
41
42
43
44
45
46
47
image: alpine/3.22
packages:
  - go
  - docker
  - docker-cli-compose
  - docker-rootless-extras
  - fuse-overlayfs
  - shadow-uidmap
sources:
  - https://git.sr.ht/~eugenetriguba/bolt
tasks:
  - setup: |
      USERNAME=$(whoami)
      echo "$USERNAME:100000:65536" | sudo tee -a /etc/subuid
      echo "$USERNAME:100000:65536" | sudo tee -a /etc/subgid
      cat >> ~/.docker_env << 'EOF'
      export XDG_RUNTIME_DIR=$HOME/.docker/run
      export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
      EOF

      source ~/.docker_env
      mkdir -p $XDG_RUNTIME_DIR
      dockerd-rootless --storage-driver=fuse-overlayfs --rootless-net=none &

  - 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