1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-17 15:50:07 +00:00

Re-enabled travis ci.

This commit is contained in:
Shuai Lin
2016-09-17 13:34:15 +08:00
parent 8fdb64f640
commit 5ccce8bd52
4 changed files with 14 additions and 29 deletions

View File

@@ -13,7 +13,6 @@ addons:
- libevent-dev - libevent-dev
- libarchive-dev - libarchive-dev
- intltool - intltool
- re2c
- libjansson-dev - libjansson-dev
- libonig-dev - libonig-dev
- libfuse-dev - libfuse-dev

View File

@@ -1,4 +1,4 @@
Seafile Server Core Seafile Server Core [![Build Status](https://secure.travis-ci.org/haiwen/seafile-server.svg?branch=master)](http://travis-ci.org/haiwen/seafile-server)
============ ============
Seafile is an open source cloud storage system with features on privacy protection and teamwork. Collections of files are called libraries, and each library can be synced separately. A library can also be encrypted with a user chosen password. Seafile also allows users to create groups and easily sharing files into groups. Seafile is an open source cloud storage system with features on privacy protection and teamwork. Collections of files are called libraries, and each library can be synced separately. A library can also be encrypted with a user chosen password. Seafile also allows users to create groups and easily sharing files into groups.

View File

@@ -13,21 +13,6 @@ wget https://dl.bintray.com/lins05/generic/libevhtp-bin/$libevhtp_bin
tar xf $libevhtp_bin tar xf $libevhtp_bin
find $HOME/opt find $HOME/opt
# download precompiled libzdb
# zdb_bin=libzdb-bin_2.11.1.tar.gz
# wget https://dl.bintray.com/lins05/generic/libzdb-bin/$zdb_bin
# tar xf $zdb_bin
# sed -i -e "s|prefix=/opt/local|prefix=$HOME/opt/local|g" $HOME/opt/local/lib/pkgconfig/zdb.pc
# find $HOME/opt
pushd /tmp/
git clone --depth=1 https://github.com/haiwen/libzdb.git
cd libzdb
./bootstrap
./configure --prefix=$HOME/opt/local
make -j2
make install
popd
# download seahub thirdpart python libs # download seahub thirdpart python libs
WGET="wget --no-check-certificate" WGET="wget --no-check-certificate"
downloads=$HOME/downloads downloads=$HOME/downloads

View File

@@ -68,7 +68,7 @@ def prepend_env_value(name, value, seperator=':', env=None):
def get_project_branch(project, default_branch='master'): def get_project_branch(project, default_branch='master'):
if project.name == 'seafile': if project.name == 'seafile-server':
return TRAVIS_BRANCH return TRAVIS_BRANCH
conf = json.loads(requests.get( conf = json.loads(requests.get(
'https://raw.githubusercontent.com/haiwen/seafile-test-deploy/master/branches.json').text) 'https://raw.githubusercontent.com/haiwen/seafile-test-deploy/master/branches.json').text)
@@ -117,7 +117,8 @@ class Project(object):
tarball = glob.glob('*.tar.gz')[0] tarball = glob.glob('*.tar.gz')[0]
info('copying %s to %s', tarball, SRCDIR) info('copying %s to %s', tarball, SRCDIR)
shell('cp {} {}'.format(tarball, SRCDIR)) shell('cp {} {}'.format(tarball, SRCDIR))
m = re.match('{}-(.*).tar.gz'.format(self.name), basename(tarball)) name = 'seafile' if self.name == 'seafile-server' else self.name
m = re.match('{}-(.*).tar.gz'.format(name), basename(tarball))
if m: if m:
self.version = m.group(1) self.version = m.group(1)
@@ -126,20 +127,20 @@ class Project(object):
shell('git checkout {}'.format(branch)) shell('git checkout {}'.format(branch))
class Ccnet(Project): class CcnetServer(Project):
def __init__(self): def __init__(self):
super(Ccnet, self).__init__('ccnet') super(CcnetServer, self).__init__('ccnet')
class Seafile(Project): class SeafileServer(Project):
configure_cmd = './configure --enable-client --enable-server' configure_cmd = './configure'
def __init__(self): def __init__(self):
super(Seafile, self).__init__('seafile') super(SeafileServer, self).__init__('seafile-server')
@chdir @chdir
def copy_dist(self): def copy_dist(self):
super(Seafile, self).copy_dist() super(SeafileServer, self).copy_dist()
global seafile_version global seafile_version
seafile_version = self.version seafile_version = self.version
@@ -181,7 +182,7 @@ class SeafObj(Project):
def build_server(libsearpc, ccnet, seafile): def build_server(libsearpc, ccnet, seafile):
cmd = [ cmd = [
'python', 'python',
join(TOPDIR, 'seafile/scripts/build/build-server.py'), join(TOPDIR, 'seafile-server/scripts/build/build-server.py'),
'--yes', '--yes',
'--version=%s' % seafile.version, '--version=%s' % seafile.version,
'--libsearpc_version=%s' % libsearpc.version, '--libsearpc_version=%s' % libsearpc.version,
@@ -196,14 +197,14 @@ def build_server(libsearpc, ccnet, seafile):
def fetch_and_build(): def fetch_and_build():
libsearpc = Project('libsearpc') libsearpc = Project('libsearpc')
ccnet = Ccnet() ccnet = CcnetServer()
seafile = Seafile() seafile = SeafileServer()
seahub = Seahub() seahub = Seahub()
seafobj = SeafObj() seafobj = SeafObj()
seafdav = SeafDAV() seafdav = SeafDAV()
for project in (libsearpc, ccnet, seafile, seahub, seafdav, seafobj): for project in (libsearpc, ccnet, seafile, seahub, seafdav, seafobj):
if project.name != 'seafile': if project.name != 'seafile-server':
project.clone() project.clone()
project.copy_dist() project.copy_dist()