Keep the continuous integration build scripts in the repo.
authorRalph Giles <giles@mozilla.com>
Mon, 1 Oct 2012 17:04:16 +0000 (10:04 -0700)
committerRalph Giles <giles@mozilla.com>
Mon, 1 Oct 2012 17:04:16 +0000 (10:04 -0700)
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.

ci/autotools.sh [new file with mode: 0755]
ci/unix.sh [new file with mode: 0755]

diff --git a/ci/autotools.sh b/ci/autotools.sh
new file mode 100755 (executable)
index 0000000..9992baa
--- /dev/null
@@ -0,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
diff --git a/ci/unix.sh b/ci/unix.sh
new file mode 100755 (executable)
index 0000000..b696146
--- /dev/null
@@ -0,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