diff options
author | David Lechner <david@pybricks.com> | 2020-03-08 20:26:35 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-28 11:40:47 +1100 |
commit | 0608fbff29fab758fa9cee67e9a485e695e5d1f7 (patch) | |
tree | cb868ffdededd48a997c91867797b651fa59095f | |
parent | 9418611c8aa860812e28b6e2b6bfde7be5817b43 (diff) |
travis: Use custom PPA to get pre-built uncrustify.
Use PPA so that we don't have to rebuild uncrustify from source, speeding
up the job. This also requires not running this test on arm64.
-rw-r--r-- | .travis.yml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index fe432b0aa..d43bca940 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,20 +24,17 @@ jobs: # check code formatting - stage: test os: linux - arch: arm64 dist: bionic env: NAME="code formatting" + before_install: + - sudo apt-add-repository --yes --update ppa:pybricks/ppa install: - - sudo apt-get install python3-pip - - sudo pip3 install black + - sudo apt-get install uncrustify python3-pip + - uncrustify --version + - pip3 install --user black - black --version script: - - git clone https://github.com/uncrustify/uncrustify.git $HOME/uncrustify - - git -C $HOME/uncrustify checkout uncrustify-0.70.1 - - mkdir -p $HOME/uncrustify/build - - (cd $HOME/uncrustify/build && cmake ..) - - make -C $HOME/uncrustify/build - - PATH=$HOME/uncrustify/build:$PATH tools/codeformat.py + - tools/codeformat.py - git diff --exit-code # stm32 port |