Skip to content

Commit 6049169

Browse files
acornardmurlock
authored andcommitted
[WIP] Create CI
1 parent d54a5c8 commit 6049169

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
sudo: required
2+
dist: trusty
3+
language: c
4+
install:
5+
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse"
6+
- curl http://mirror.openio.io/pub/repo/openio/APT-GPG-KEY-OPENIO-0 | sudo apt-key add -
7+
- sudo apt-add-repository "deb http://mirror.openio.io/pub/repo/openio/sds/17.04/ubuntu/trusty ./"
8+
- sudo apt-get update -qq
9+
- sudo apt-get install -y --force-yes libevent-2.0-5 libevent-dev make cmake libglib2.0-dev
10+
- virtualenv $HOME/oio && source $HOME/oio/bin/activate
11+
12+
env:
13+
- TEST_SUITE=build
14+
15+
script:
16+
- set -e
17+
- mkdir /tmp/oio && source $HOME/oio/bin/activate
18+
- export CMAKE_OPTS='-DCMAKE_INSTALL_PREFIX=/tmp/oio -DLD_LIBDIR=lib -DZK_LIBDIR=/usr/lib'
19+
- if [ "build" == "${TEST_SUITE/*build*/build}" ] ; then cmake ${CMAKE_OPTS} -DCMAKE_BUILD_TYPE="Release" . && make all && make clean ; fi

0 commit comments

Comments
 (0)