2019-01-04 17:07:09 +08:00
|
|
|
env:
|
|
|
|
CIRRUS_CLONE_DEPTH: 1
|
|
|
|
ARCH: amd64
|
|
|
|
|
|
|
|
task:
|
|
|
|
freebsd_instance:
|
|
|
|
matrix:
|
|
|
|
image: freebsd-12-0-release-amd64
|
|
|
|
image: freebsd-11-2-release-amd64
|
|
|
|
install_script:
|
|
|
|
- sed -i.bak -e 's,pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly,pkg+http://pkg.FreeBSD.org/\${ABI}/latest,' /etc/pkg/FreeBSD.conf
|
|
|
|
- pkg upgrade -y
|
2019-01-10 09:07:11 +08:00
|
|
|
- pkg install -y autoconf git gmake
|
|
|
|
clone_script:
|
|
|
|
- git clone --tags --branch=${CIRRUS_BASE_BRANCH} https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git ${CIRRUS_WORKING_DIR}
|
|
|
|
- git fetch origin ${CIRRUS_BRANCH}/head:${CIRRUS_BRANCH}
|
|
|
|
- git checkout ${CIRRUS_BRANCH}
|
2019-01-04 17:07:09 +08:00
|
|
|
script:
|
|
|
|
- autoconf
|
|
|
|
#- ./configure ${COMPILER_FLAGS:+ CC="$CC $COMPILER_FLAGS" CXX="$CXX $COMPILER_FLAGS" } $CONFIGURE_FLAGS
|
|
|
|
- ./configure
|
|
|
|
- export JFLAG=`sysctl -n kern.smp.cpus`
|
|
|
|
- gmake -j${JFLAG}
|
|
|
|
- gmake -j${JFLAG} tests
|
|
|
|
- gmake check
|