John Park | 7eb9042 | 2018-01-27 12:04:57 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | if [[ $TRAVIS_OS_NAME != 'osx' ]]; then |
| 4 | # Install custom requirements on Linux |
| 5 | sudo sh -c 'echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" > /etc/apt/sources.list.d/llvm.list' |
| 6 | wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - |
| 7 | sudo add-apt-repository ppa:wpilib/toolchain -y |
| 8 | sudo apt-get update -q |
| 9 | sudo apt-get install clang-format-5.0 frc-toolchain -y |
| 10 | |
| 11 | wget https://bootstrap.pypa.io/get-pip.py |
| 12 | sudo python3.5 get-pip.py |
| 13 | python3.5 -m pip install --user wpiformat |
| 14 | else |
| 15 | echo PATH=$PATH |
| 16 | brew update |
| 17 | brew install python3 clang-format |
| 18 | clang-format --version |
| 19 | echo PATH=$PATH |
| 20 | |
| 21 | pip3 install --user wpiformat |
| 22 | fi |