mirror of
https://github.com/vgough/encfs.git
synced 2024-11-28 02:43:50 +01:00
spread CI work over targets
This commit is contained in:
parent
64c3b4459c
commit
1e43b05712
12
.travis.yml
12
.travis.yml
@ -5,7 +5,7 @@ matrix:
|
||||
- os: linux
|
||||
compiler: gcc
|
||||
dist: trusty
|
||||
sudo: false
|
||||
sudo: required
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
@ -17,12 +17,12 @@ matrix:
|
||||
- gettext
|
||||
- cmake3
|
||||
env:
|
||||
- INTEGRATION=false
|
||||
- SUDO_TESTS=true
|
||||
|
||||
- os: linux
|
||||
compiler: clang
|
||||
dist: trusty
|
||||
sudo: true
|
||||
sudo: false
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
@ -37,14 +37,14 @@ matrix:
|
||||
- clang-4.0
|
||||
- clang-tidy-4.0
|
||||
env:
|
||||
- CC=clang-4.0 CXX=clang++-4.0 CHECK=true INTEGRATION=true SUDO_TESTS=true
|
||||
- CC=clang-4.0 CXX=clang++-4.0 CHECK=true INTEGRATION=false CMAKE=/tmp/bin/cmake
|
||||
|
||||
- os: osx
|
||||
compiler: clang
|
||||
osx_image: xcode8.3
|
||||
sudo: true
|
||||
sudo: required
|
||||
env:
|
||||
- INTEGRATION=true SUDO_TESTS=true
|
||||
- SUDO_TESTS=true
|
||||
|
||||
before_script:
|
||||
- ./ci/setup.sh
|
||||
|
5
build.sh
5
build.sh
@ -1,9 +1,10 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
: ${CMAKE:=cmake}
|
||||
: ${CHECK:=false}
|
||||
: ${INTEGRATION:=true}
|
||||
|
||||
cmake --version
|
||||
${CMAKE} --version
|
||||
|
||||
CFG=$*
|
||||
if [[ "$CHECK" == "true" ]]; then
|
||||
@ -20,7 +21,7 @@ then
|
||||
fi
|
||||
|
||||
cd build
|
||||
cmake .. ${CFG}
|
||||
${CMAKE} .. ${CFG}
|
||||
make -j2
|
||||
make test
|
||||
if [[ "$INTEGRATION" == "true" ]]; then
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
: ${INTEGRATION:=false}
|
||||
: ${INTEGRATION:=true}
|
||||
: ${CHECK:=false}
|
||||
|
||||
if [[ "$INTEGRATION" == "true" ]]; then
|
||||
@ -15,8 +15,8 @@ if [[ "$CHECK" == "true" ]]; then
|
||||
if uname -s | grep -q Linux; then
|
||||
wget https://cmake.org/files/v3.9/cmake-3.9.1-Linux-x86_64.tar.gz -O /tmp/cmake.tar.gz
|
||||
tar -C /tmp/ -xf /tmp/cmake.tar.gz
|
||||
sudo rm -f $(which cmake)
|
||||
sudo ln -s $(ls -1 /tmp/cmake*/bin/cmake) /bin/
|
||||
mkdir /tmp/bin
|
||||
ln -s $(ls -1 /tmp/cmake*/bin/cmake) /tmp/bin/
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user