ref: 57274679bcbfa66ccb4161931223be4510faaa61
parent: cc8c6502136a5b1e97316287c0c2b5a6b2984eed
author: Ralph Giles <giles@mozilla.com>
date: Mon Oct 1 06:04:16 EDT 2012
Keep the continuous integration build scripts in the repo. We use scripts like these with jenkins to do automatic build and test runs on every commit. Keeping the build instructions in the source repository itself makes it easier to track changes, and easier to make atomic updates when something is moved in the build system which breaks the jenkins runs.
--- /dev/null
+++ b/ci/autotools.sh
@@ -1,0 +1,21 @@
+# Continuous integration build script for opusfile.
+# This script is run by automated frameworks to verify commits
+# see https://mf4.xiph.org/jenkins/job/opusfile-autotools/
+
+# This is intended to be run from the top-level source directory.
+
+# WARNING: clobbers outside the current tree!
+rm -f ../opus
+ln -s /srv/jenkins/jobs/opus/workspace ../opus
+
+# compile
+./autogen.sh
+./configure PKG_CONFIG_PATH=$PWD/../opus
+make clean
+make
+
+# verify distribution target
+make distcheck
+
+# build the documentation
+make -C doc/latex
--- /dev/null
+++ b/ci/unix.sh
@@ -1,0 +1,20 @@
+# Continuous integration build script for opusfile.
+# This script is run by automated frameworks to verify commits
+# see https://mf4.xiph.org/jenkins/job/opusfile-unix/
+
+# This is intended to be run from the top-level source directory.
+
+# WARNING: clobbers outside the current tree!
+rm -f ../opus
+ln -s /srv/jenkins/jobs/opus/workspace ../opus
+
+# compile
+make -C unix PKG_CONFIG_PATH=$PWD/../opus clean
+make -C unix PKG_CONFIG_PATH=$PWD/../opus
+
+# run any built-in tests
+make -C unix PKG_CONFIG_PATH=$PWD/../opus check
+
+# build the documentation
+make -C doc
+make -C doc/latex