mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
4efe541814
This isn't quite Travis, but close enough for local testing.
16 lines
362 B
Bash
Executable File
16 lines
362 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')"
|
|
|
|
if [ -f .git ]; then
|
|
cd ..
|
|
tar -c "${FILES[@]}" "c-toxcore/.git" ".git/modules/c-toxcore" |
|
|
docker build -f c-toxcore/other/docker/Dockerfile.ci -
|
|
else
|
|
cd ..
|
|
tar -c "${FILES[@]}" "c-toxcore/.git" |
|
|
docker build -f c-toxcore/other/docker/Dockerfile.ci -
|
|
fi
|