Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ script:
--rm \
--workdir /travis \
--volume ${TRAVIS_BUILD_DIR}:/travis \
debian:sid /bin/bash -c './debian-setup.sh && ./driver.sh && ccache -s'
clangbuiltlinux/ubuntu /bin/bash -c './env-setup.sh && ./driver.sh && ccache -s'
after_script:
- sleep 1
notifications:
Expand Down
69 changes: 0 additions & 69 deletions debian-setup.sh

This file was deleted.

1 change: 0 additions & 1 deletion driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ setup_variables() {

check_dependencies() {
command -v nproc
command -v gcc
command -v "${CROSS_COMPILE:-}"as
command -v "${CROSS_COMPILE:-}"ld
command -v ${qemu}
Expand Down
22 changes: 22 additions & 0 deletions env-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Configure our Docker container during Travis builds

# Show all commands and exit upon failure
set -eux

# By default, Travis's ccache size is around 500MB. We'll
# start with 2GB just to see how it plays out.
ccache -M 2G

# Enable compression so that we can have more objects in
# the cache (9 is most compressed, 6 is default)
ccache --set-config=compression=true
ccache --set-config=compression_level=9

# Set the cache directory to /travis/.ccache, which we've
# bind mounted during 'docker create' so that we can keep
# this cached across builds
ccache --set-config=cache_dir=/travis/.ccache

# Clear out the stats so we actually know the cache stats
ccache -z