Run cmake build in travis (#1287)

This commit is contained in:
Peter Johnson
2018-08-20 00:55:54 -07:00
committed by GitHub
parent 6df7425440
commit a5f7342fce

View File

@@ -10,12 +10,14 @@ addons:
packages:
- g++-6
- python3.5-dev
- cmake
before_install:
- 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:lkoppel/opencv -y
- sudo apt-get update -q || true
- sudo apt-get install clang-format-5.0 -y
- sudo apt-get install clang-format-5.0 libopencv-dev -y
install:
- wget https://bootstrap.pypa.io/get-pip.py
@@ -39,3 +41,4 @@ script:
- python3.5 gen/wpilibj_frcnetcomm.py
- git --no-pager diff --exit-code HEAD # Ensure formatter made no changes
- ./gradlew --no-daemon --console=plain -PskipAthena :hal:halSharedLibrary :hal:halJNISharedLibrary :wpilibc:wpilibcSharedLibrary :wpilibj:jar
- mkdir cmake-build && cd cmake-build && env CXX=g++-6 CC=gcc-6 cmake -DWITHOUT_ALLWPILIB=OFF .. && make