diff options
Diffstat (limited to 'other/docker/run-ci')
-rwxr-xr-x | other/docker/run-ci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/other/docker/run-ci b/other/docker/run-ci new file mode 100755 index 00000000..9005cfbd --- /dev/null +++ b/other/docker/run-ci | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')" | ||
6 | |||
7 | if [ -f .git ]; then | ||
8 | cd .. | ||
9 | tar -c "${FILES[@]}" "c-toxcore/.git" ".git/modules/c-toxcore" | | ||
10 | docker build -f c-toxcore/other/docker/Dockerfile.ci - | ||
11 | else | ||
12 | cd .. | ||
13 | tar -c "${FILES[@]}" "c-toxcore/.git" | | ||
14 | docker build -f c-toxcore/other/docker/Dockerfile.ci - | ||
15 | fi | ||