diff options
| author | Claudio André <claudioandre.br@gmail.com> | 2018-07-09 13:24:03 -0300 |
|---|---|---|
| committer | Claudio André <claudioandre.br@gmail.com> | 2018-07-09 20:54:04 -0300 |
| commit | c4b508f639163d439b23362a68d0aa1afc227133 (patch) | |
| tree | e8bb1c606fda491076700a4dfa763dcaea49b77b /test/extra/do_docker.sh | |
| parent | adedb2dc591692fbf1af8b74833f7b0066d66bf5 (diff) | |
| download | gjs-c4b508f639163d439b23362a68d0aa1afc227133.tar.gz | |
CI: move the Docker images creation to GitLab
[skip ci]
Diffstat (limited to 'test/extra/do_docker.sh')
| -rwxr-xr-x | test/extra/do_docker.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/extra/do_docker.sh b/test/extra/do_docker.sh new file mode 100755 index 00000000..1566e59d --- /dev/null +++ b/test/extra/do_docker.sh @@ -0,0 +1,39 @@ +#!/bin/bash -e + +function do_Shrink_Image(){ + echo + echo '-- Cleaning image --' + PATH=$PATH:~/.local/bin + rm -rf ~/jhbuild/install/lib/libjs_static.ajs + + if [[ $BASE == "ubuntu" ]]; then + apt-get -y clean + rm -rf /var/lib/apt/lists/* + + elif [[ $BASE == "fedora" ]]; then + dnf -y clean all + fi + + echo '-- Done --' +} + +if [[ $1 == "BUILD_MOZ" ]]; then + do_Install_Base_Dependencies + do_Install_Dependencies + do_Set_Env + + if [[ $DEV == "devel" ]]; then + do_Install_Extras + fi + do_Show_Info + do_Get_JHBuild + do_Build_JHBuild + do_Build_Mozilla + + # Build JHBuild to create a docker image ready to go + jhbuild build m4-common + + do_Shrink_Image +fi +# Clear the environment +unset BUILD_OPTS |
