mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
- add t13_etcd test directory - etcd will be started for the unit tests and each system test - etcd will load fixture DB export if requested by the test - existing tests are reused for etcd testing
15 lines
330 B
Bash
Executable File
15 lines
330 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# cleanup
|
|
rm -rf /app/tmp
|
|
rm -rf /tmp/aptly*
|
|
|
|
mkdir -p /srv
|
|
|
|
usermod -u `stat -c %u /app` aptly >/dev/null
|
|
chown -R `stat -c %u /app` /var/lib/aptly /srv
|
|
|
|
# use same /home/runner dir as in github workflow
|
|
chown -R `stat -c %u /app` /home/runner
|
|
su - aptly -c "cd /app; export HOME=/home/runner; go mod tidy; make test"
|