Merge pull request #91 from vgough/circle

Add support for Circle CI.
This commit is contained in:
Valient Gough 2015-06-19 00:04:54 -07:00
commit cbe37e5b47
6 changed files with 40 additions and 2 deletions

View File

@ -1,7 +1,8 @@
image: encfs_worker image: encfs_worker
script: script:
- sh devmode -DCMAKE_INSTALL_PREFIX:PATH=/tmp/cmake - sh devmode -DCMAKE_INSTALL_PREFIX:PATH=/tmp/encfs
- cd build - cd build
- make - make
- make test - make test
- make install - make install
- /tmp/encfs/bin/encfsctl --version

View File

@ -1,6 +1,8 @@
# EncFS - an Encrypted Filesystem # EncFS - an Encrypted Filesystem
[![Build Status](http://104.236.164.205:8080/api/badge/github.com/vgough/encfs/status.svg?branch=master)](http://104.236.164.205:8080/github.com/vgough/encfs) _Build Status_
- Drone: [![Build Status](http://104.236.164.205:8080/api/badge/github.com/vgough/encfs/status.svg?branch=master)](http://104.236.164.205:8080/github.com/vgough/encfs)
- Circle: [![Circle CI](https://circleci.com/gh/vgough/encfs.svg?style=svg)](https://circleci.com/gh/vgough/encfs)
## About ## About

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