mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
23 lines
720 B
Bash
Executable File
23 lines
720 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
|
|
# Install custom requirements on Linux
|
|
sudo sh -c 'echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" > /etc/apt/sources.list.d/llvm.list'
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
|
|
sudo add-apt-repository ppa:wpilib/toolchain -y
|
|
sudo apt-get update -q
|
|
sudo apt-get install clang-format-5.0 frc-toolchain -y
|
|
|
|
wget https://bootstrap.pypa.io/get-pip.py
|
|
sudo python3.5 get-pip.py
|
|
python3.5 -m pip install --user wpiformat
|
|
else
|
|
echo PATH=$PATH
|
|
brew update
|
|
brew install python3 clang-format
|
|
clang-format --version
|
|
echo PATH=$PATH
|
|
|
|
pip3 install --user wpiformat
|
|
fi
|