language: c++ cache: ccache git: depth: 1 dist: xenial sudo: true install: - sudo apt-get install --allow-unauthenticated libboost-thread-dev libboost-iostreams-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-chrono-dev libboost-test-dev libboost-context-dev libboost-regex-dev libboost-coroutine-dev cmake parallel addons: env: global: - CCACHE_COMPRESS=exists_means_true - CCACHE_MAXSIZE=1Gi - CCACHE_SLOPPINESS=include_file_ctime,include_file_mtime,time_macros jobs: include: - stage: build for cache script: ./programs/build_helpers/build_protocol - stage: build and test script: ./programs/build_helpers/build_and_test