add circle.yml

This commit is contained in:
Valient Gough 2015-06-18 22:23:22 -07:00
parent 30b5b53163
commit 48f2d97ab8
4 changed files with 35 additions and 0 deletions

5
ci/config.sh Executable file
View File

@ -0,0 +1,5 @@
set -x
set -e
mkdir build
cd build
../ci/cmake/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=/tmp/encfs -DCMAKE_BUILD_TYPE=Debug ..

7
ci/install-cmake.sh Executable file
View File

@ -0,0 +1,7 @@
set -x
set -e
if [ ! -e ci/cmake/bin/cmake ]; then
wget http://www.cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz
tar -xzf cmake-3.1.3-Linux-x86_64.tar.gz
mv cmake-3.1.3-Linux-x86_64 ci/cmake
fi

5
ci/install-gcc.sh Executable file
View File

@ -0,0 +1,5 @@
set -x
set -e
sudo apt-get install -y gcc-4.8 g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100

18
circle.yml Normal file
View File

@ -0,0 +1,18 @@
machine:
timezone:
America/Los_Angeles
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install cmake libfuse-dev librlog-dev libgettextpo-dev
- bash ./ci/install-gcc.sh
- bash ./ci/install-cmake.sh
cache_directories:
- "ci/cmake"
test:
override:
- bash ./ci/config.sh
- cd build && make && make test && make install
- /tmp/encfs/bin/encfsctl --version