summaryrefslogtreecommitdiff
path: root/other/docker/run-ci
diff options
context:
space:
mode:
Diffstat (limited to 'other/docker/run-ci')
-rwxr-xr-xother/docker/run-ci22
1 files changed, 14 insertions, 8 deletions
diff --git a/other/docker/run-ci b/other/docker/run-ci
index 9005cfbd..a42c11eb 100755
--- a/other/docker/run-ci
+++ b/other/docker/run-ci
@@ -1,15 +1,21 @@
1#!/bin/bash 1#!/bin/bash
2 2
3set -eu 3set -eux
4
5STAGE="${1-cmake}"
4 6
5readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')" 7readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')"
6 8
9FILES+=(c-toxcore/.git)
10
7if [ -f .git ]; then 11if [ -f .git ]; then
8 cd .. 12 FILES+=(.git/modules/c-toxcore)
9 tar -c "${FILES[@]}" "c-toxcore/.git" ".git/modules/c-toxcore" |
10 docker build -f c-toxcore/other/docker/Dockerfile.ci -
11else
12 cd ..
13 tar -c "${FILES[@]}" "c-toxcore/.git" |
14 docker build -f c-toxcore/other/docker/Dockerfile.ci -
15fi 13fi
14
15cd ..
16tar -c "${FILES[@]}" |
17 docker build -f "c-toxcore/other/docker/travis/Dockerfile" \
18 -t localbuild/travis:1.0.0 -
19tar -c "${FILES[@]}" |
20 docker build -f "c-toxcore/other/docker/$STAGE/Dockerfile" \
21 -t "localbuild/$STAGE:1.0.0" -