diff options
author | Omer Katz <omer.drow@gmail.com> | 2018-05-22 17:45:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 17:45:19 +0300 |
commit | 93727cf7b0cfe548c77da2843e52275e82025a72 (patch) | |
tree | efe1a1e1469a1b031518a4672b151b2eede7e320 /.travis.yml | |
parent | 8904ab86b0397e64846e4b7418584f7120626d9f (diff) | |
download | systemd-93727cf7b0cfe548c77da2843e52275e82025a72.tar.gz |
Enable ccache and mount it into the build/test container.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index fc13586871..c7c0101748 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ sudo: required services: - docker + +cache: ccache jobs: include: @@ -35,7 +37,7 @@ jobs: - MACHINE_ID=$(cat /var/lib/dbus/machine-id) before_script: *update script: - - docker run -dit --name travis_build ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT} bash + - docker run -v $HOME/.ccache:$HOME/.ccache -dit --name travis_build ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT} bash - docker exec -u 0 -ti travis_build bash -c "echo ${MACHINE_ID} > /etc/machine-id" - docker exec -ti travis_build meson build - docker exec -ti travis_build ninja -C build @@ -49,7 +51,7 @@ jobs: compiler: gcc before_script: *update script: - - docker run --privileged --net=host -dit --name travis_test ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT} bash + - docker run -v $HOME/.ccache:$HOME/.ccache --privileged --net=host -dit --name travis_test ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT} bash - docker exec -ti travis_test ninja -C build test - docker commit -m "systemd test state" -a "${AUTHOR_NAME}" travis_test ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT} - docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" |