-
Notifications
You must be signed in to change notification settings - Fork 40
/
wercker.yml
38 lines (38 loc) · 1.5 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
centos:
box: library/centos
steps:
- script:
name: yum -y install gcc make php php-devel rpm-build
code: |-
yum -y install gcc make php php-devel rpm-build
- script:
name: setenv TIMECOP_VER
code: |-
export TIMECOP_VER=$(grep '^Version' php-timecop.spec | sed 's/^.*[^0-9.]\([0-9.]*\)$/\1/')
echo TIMECOP_VER=${TIMECOP_VER}
- script:
name: rpmbuild
code: |-
TIMECOP_TMP="$(dirname $(mktemp --dry-run 2>/dev/null || echo "/var/tmp/tmp_dir"))/php-timecop"
echo TIMECOP_TMP=${TIMECOP_TMP}
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
mkdir -p ${TIMECOP_TMP}/php-timecop-${TIMECOP_VER}/
cp -R ./ ${TIMECOP_TMP}/php-timecop-${TIMECOP_VER}/
tar cvzf ~/rpmbuild/SOURCES/php-timecop-${TIMECOP_VER}.tar.gz -C ${TIMECOP_TMP} php-timecop-${TIMECOP_VER}/
rpmbuild -bb php-timecop.spec
ubuntu-32bit:
box: 32bit/ubuntu:16.04
steps:
- script:
name: Install required software
code: |-
apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade build-essential php-dev --no-install-recommends
- script:
name: Build test targets
code: |-
phpize && ./configure && make
- script:
name: Run test
code: |-
make test REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TESTS="--show-all" | tee tests-output.txt && if grep -q 'TEST SUMMARY$' tests-output.txt ; then exit 1 ; fi