summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-19 04:54:38 +0100
committerGitHub <noreply@github.com>2018-11-19 04:54:38 +0100
commit5e6ad795cc914d4c3f8bb016b122bdc6713f477a (patch)
tree73cdfd4432c650e24b070d61fb56aa0ae69c1ec7
parentMerge pull request #1619 from janisozaur/patch-12 (diff)
parenttravis: Use pre-built image for clang-format target (diff)
downloadyuzu-5e6ad795cc914d4c3f8bb016b122bdc6713f477a.tar
yuzu-5e6ad795cc914d4c3f8bb016b122bdc6713f477a.tar.gz
yuzu-5e6ad795cc914d4c3f8bb016b122bdc6713f477a.tar.bz2
yuzu-5e6ad795cc914d4c3f8bb016b122bdc6713f477a.tar.lz
yuzu-5e6ad795cc914d4c3f8bb016b122bdc6713f477a.tar.xz
yuzu-5e6ad795cc914d4c3f8bb016b122bdc6713f477a.tar.zst
yuzu-5e6ad795cc914d4c3f8bb016b122bdc6713f477a.zip
-rwxr-xr-x.travis/clang-format/build.sh2
-rwxr-xr-x.travis/clang-format/deps.sh2
-rwxr-xr-x.travis/clang-format/docker.sh3
3 files changed, 2 insertions, 5 deletions
diff --git a/.travis/clang-format/build.sh b/.travis/clang-format/build.sh
index 3707be3c9..36c276c43 100755
--- a/.travis/clang-format/build.sh
+++ b/.travis/clang-format/build.sh
@@ -1,3 +1,3 @@
#!/bin/bash -ex
-docker run -v $(pwd):/yuzu ubuntu:18.04 /bin/bash -ex /yuzu/.travis/clang-format/docker.sh
+docker run --env-file .travis/common/travis-ci.env -v $(pwd):/yuzu -v "$HOME/.ccache":/root/.ccache citraemu/build-environments:linux-clang-format /bin/bash -ex /yuzu/.travis/clang-format/docker.sh
diff --git a/.travis/clang-format/deps.sh b/.travis/clang-format/deps.sh
index 540bb934a..a15d164c7 100755
--- a/.travis/clang-format/deps.sh
+++ b/.travis/clang-format/deps.sh
@@ -1,3 +1,3 @@
#!/bin/sh -ex
-docker pull ubuntu:18.04
+docker pull citraemu/build-environments:linux-clang-format
diff --git a/.travis/clang-format/docker.sh b/.travis/clang-format/docker.sh
index 05047e9b8..b519ab40e 100755
--- a/.travis/clang-format/docker.sh
+++ b/.travis/clang-format/docker.sh
@@ -1,8 +1,5 @@
#!/bin/bash -ex
-apt-get update
-apt-get install -y clang-format-6.0
-
# Run clang-format
cd /yuzu
./.travis/clang-format/script.sh