forked from haiwen/seafile-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 1.57 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: cpp
matrix:
include:
- compiler: gcc
env:
CFLAGS="-Wall -Wextra -Wsign-compare -Wno-long-long -Wno-unused-parameter -pedantic"
CXXFLAGS="-Woverloaded-virtual $CFLAGS"
- compiler: clang
env:
CFLAGS="-Wall -Wextra -Wsign-compare -Wno-long-long -Wno-unused-parameter -pedantic -fcolor-diagnostics"
CXXFLAGS="-Woverloaded-virtual $CFLAGS"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq valac uuid-dev libevent-dev libarchive-dev intltool re2c libjansson-dev libqt4-dev
- git clone --depth=1 --branch=release-2-11-3 https://bitbucket.org/tildeslash/libzdb.git deps/libzdb
- git clone --depth=1 --branch=master git://github.com/haiwen/libsearpc.git deps/libsearpc
- git clone --depth=1 --branch=master git://github.com/haiwen/ccnet.git deps/ccnet
- git clone --depth=1 --branch=master git://github.com/haiwen/seafile.git deps/seafile
# build libzdb, required by ccnet/seafile
- cd deps/libzdb && ./bootstrap && ./configure --without-postgresql --without-mysql && make -j8 && sudo make install && cd -
# build libsearpc
- cd deps/libsearpc && ./autogen.sh && ./configure
- make -j8 && sudo make install && cd ../..
# build ccnet
- cd deps/ccnet && ./autogen.sh && ./configure --enable-client --enable-server
- make -j8 && sudo make install && cd ../..
# build seafile
- cd deps/seafile && ./autogen.sh && ./configure --disable-fuse
- make -j8 && sudo make install && cd ../..
script:
- cmake -DBUILD_TESTING=on .
- make -j8
- make test
notifications:
email:
recipients: