-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathwercker.yml
55 lines (48 loc) · 1.6 KB
/
wercker.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
box: centos:7.3.1611
build:
steps:
- script:
name: Setup network
code: |
echo "NETWORKING=yes" > /etc/sysconfig/network
- script:
name: Setup yum repositories
code: |
yum install -y epel-release
cd /etc/yum.repos.d/
curl http://project-hatohol.github.io/repo/hatohol-el7.repo -O
- script:
name: Install libraries for Hatohol
code: |
yum install -y sqlite-devel mysql-devel libsoup-devel libuuid-devel json-glib-devel librabbitmq-devel mysql-server glib2-devel httpd mod_wsgi MySQL-python python-argparse
- script:
name: Setup build enviroment
code: |
yum groupinstall -y 'Development tools'
yum install -y rpm-build autoconf-archive
- script:
name: Setup Cutter
code: |
rpm -Uvh http://sourceforge.net/projects/cutter/files/centos/cutter-release-1.3.0-1.noarch.rpm
yum install -y cutter
- script:
name: Clone & fetch Hatohol repository
code: |
git clone https://github.com/project-hatohol/hatohol.git ~/hatohol
cd ~/hatohol
git fetch origin
# HEAD is used for local `wercker` CLI command build
git checkout -qf ${WERCKER_GIT_COMMIT:-HEAD}
- script:
name: Building Hatohol
code: |
cd ~/hatohol
./autogen.sh
./configure
make -j `nproc`
make dist -j `nproc`
- script:
name: Build RPM
code: |
cd ~/hatohol
MAKEFLAGS="-j `nproc`" rpmbuild -tb hatohol-*.tar.bz2