image: samthursfield/buildstream:0.1-20170621.1 before_script: # Update to latest BuildStream - | cd ~/buildstream git pull origin master pip3 install . cd - # Diagnostics - | mount df -h whoami # Work around https://github.com/fedora-cloud/docker-brew-fedora/issues/14 - export LANG="C.UTF-8" - export LC_ALL="C.UTF-8" # Store cache in the shared Docker volume - export XDG_CACHE_HOME=/cache # Private key stored as a protected variable that allows pushing to # ostree@ostree.baserock.org - | if [ -z "$baserock_ostree_cache_private_key" ]; then echo >&2 "Private key for ostree.baserock.org is not available." exit 1 else mkdir -p ~/.ssh echo "$baserock_ostree_cache_private_key" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub fi # Enable push and pull for Baserock artifact cache - | mkdir -p ~/.config cat > ~/.config/buildstream.conf <