|
@ -20,6 +20,8 @@ before_install: |
|
|
- make |
|
|
- make |
|
|
- sudo make install |
|
|
- sudo make install |
|
|
- popd |
|
|
- popd |
|
|
|
|
|
# Load cached docker images |
|
|
|
|
|
- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi |
|
|
addons: |
|
|
addons: |
|
|
apt: |
|
|
apt: |
|
|
packages: |
|
|
packages: |
|
@ -32,6 +34,9 @@ addons: |
|
|
script: |
|
|
script: |
|
|
- ./autogen.sh |
|
|
- ./autogen.sh |
|
|
- ./configure && make |
|
|
- ./configure && make |
|
|
|
|
|
# Test cmake using our builder |
|
|
|
|
|
- cd docker/build && docker build -f builder.Dockerfile -t builder . && cd - |
|
|
|
|
|
- docker run --rm -it -v $PWD:/src -w /src builder sh -c /src/docker/build/dockerbuild.sh && echo yes |
|
|
branches: |
|
|
branches: |
|
|
only: |
|
|
only: |
|
|
- master |
|
|
- master |
|
@ -41,3 +46,19 @@ notifications: |
|
|
email: |
|
|
email: |
|
|
on_success: change |
|
|
on_success: change |
|
|
on_failure: always |
|
|
on_failure: always |
|
|
|
|
|
|
|
|
|
|
|
# Use cache to speedup next build |
|
|
|
|
|
services: |
|
|
|
|
|
- docker |
|
|
|
|
|
|
|
|
|
|
|
before_cache: |
|
|
|
|
|
# Save tagged docker images |
|
|
|
|
|
- > |
|
|
|
|
|
mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}' |
|
|
|
|
|
| xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz' |
|
|
|
|
|
|
|
|
|
|
|
cache: |
|
|
|
|
|
bundler: true |
|
|
|
|
|
directories: |
|
|
|
|
|
- $HOME/docker |
|
|
|
|
|
|