diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-18 20:12:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 20:12:11 +0100 |
commit | de43db3400c4ce60ea5582117bdee1e87ab22f67 (patch) | |
tree | ba5140cfa871cbfbc89d37b23b19ed3157875ec0 | |
parent | Merge pull request #201 from Subv/ipc_delay_ (diff) | |
parent | Update build.sh (diff) | |
download | yuzu-de43db3400c4ce60ea5582117bdee1e87ab22f67.tar yuzu-de43db3400c4ce60ea5582117bdee1e87ab22f67.tar.gz yuzu-de43db3400c4ce60ea5582117bdee1e87ab22f67.tar.bz2 yuzu-de43db3400c4ce60ea5582117bdee1e87ab22f67.tar.lz yuzu-de43db3400c4ce60ea5582117bdee1e87ab22f67.tar.xz yuzu-de43db3400c4ce60ea5582117bdee1e87ab22f67.tar.zst yuzu-de43db3400c4ce60ea5582117bdee1e87ab22f67.zip |
-rw-r--r-- | .travis.yml | 13 | ||||
-rwxr-xr-x | .travis/clang-format/build.sh | 3 | ||||
-rwxr-xr-x | .travis/clang-format/deps.sh | 3 | ||||
-rwxr-xr-x | .travis/clang-format/docker.sh | 8 |
4 files changed, 18 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index e2742b5fe..044708b1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,16 +3,11 @@ matrix: include: - os: linux env: NAME="clang-format" + sudo: required dist: trusty - addons: - apt: - sources: - - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - - sourceline: 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main' - packages: - - clang-format-6.0 - script: "./.travis/clang-format/script.sh" + services: docker + install: "./.travis/clang-format/deps.sh" + script: "./.travis/clang-format/build.sh" - os: linux env: NAME="linux build" sudo: required diff --git a/.travis/clang-format/build.sh b/.travis/clang-format/build.sh new file mode 100755 index 000000000..3707be3c9 --- /dev/null +++ b/.travis/clang-format/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash -ex + +docker run -v $(pwd):/yuzu ubuntu:18.04 /bin/bash -ex /yuzu/.travis/clang-format/docker.sh diff --git a/.travis/clang-format/deps.sh b/.travis/clang-format/deps.sh new file mode 100755 index 000000000..540bb934a --- /dev/null +++ b/.travis/clang-format/deps.sh @@ -0,0 +1,3 @@ +#!/bin/sh -ex + +docker pull ubuntu:18.04 diff --git a/.travis/clang-format/docker.sh b/.travis/clang-format/docker.sh new file mode 100755 index 000000000..05047e9b8 --- /dev/null +++ b/.travis/clang-format/docker.sh @@ -0,0 +1,8 @@ +#!/bin/bash -ex + +apt-get update +apt-get install -y clang-format-6.0 + +# Run clang-format +cd /yuzu +./.travis/clang-format/script.sh |