toxcore/other/docker/run-ci
iphydf 4efe541814
Add a script to run Travis CI locally.
This isn't quite Travis, but close enough for local testing.
2020-05-03 16:59:26 +01:00

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