diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-05-03 21:13:33 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-05-05 23:41:16 +0100 |
commit | 3851cfb652f1b2237738a49c106e703f0270ceee (patch) | |
tree | d760cc11853a8d56fc4cd4455f4eeba23685e07f /other/docker/run-ci | |
parent | 8c0fd40356e4a7724b556e17b15b0d14f7d25b4d (diff) |
Add autotools build to localbuild docker images.
Diffstat (limited to 'other/docker/run-ci')
-rwxr-xr-x | other/docker/run-ci | 22 |
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 | ||
3 | set -eu | 3 | set -eux |
4 | |||
5 | STAGE="${1-cmake}" | ||
4 | 6 | ||
5 | readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')" | 7 | readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')" |
6 | 8 | ||
9 | FILES+=(c-toxcore/.git) | ||
10 | |||
7 | if [ -f .git ]; then | 11 | if [ -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 - | ||
11 | else | ||
12 | cd .. | ||
13 | tar -c "${FILES[@]}" "c-toxcore/.git" | | ||
14 | docker build -f c-toxcore/other/docker/Dockerfile.ci - | ||
15 | fi | 13 | fi |
14 | |||
15 | cd .. | ||
16 | tar -c "${FILES[@]}" | | ||
17 | docker build -f "c-toxcore/other/docker/travis/Dockerfile" \ | ||
18 | -t localbuild/travis:1.0.0 - | ||
19 | tar -c "${FILES[@]}" | | ||
20 | docker build -f "c-toxcore/other/docker/$STAGE/Dockerfile" \ | ||
21 | -t "localbuild/$STAGE:1.0.0" - | ||