summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-03 11:09:36 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-03 11:09:36 +0100
commit955d9d22b95eab235b85b9c47e801e54d1cbcdaa (patch)
tree2169fe933a76aaf39420d545301d3fc582552c5b
parentdaef6f6b679dfe2741fb2fe06ad161135fdc02db (diff)
Add static build.
-rw-r--r--.github/travis/before-install.sh12
-rw-r--r--.github/travis/build.sh9
-rw-r--r--.travis.yml27
3 files changed, 41 insertions, 7 deletions
diff --git a/.github/travis/before-install.sh b/.github/travis/before-install.sh
new file mode 100644
index 00000000..3d9c91c4
--- /dev/null
+++ b/.github/travis/before-install.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "$TRAVIS_OS_NAME" = "linux" ]; then
+ sudo apt-get update -qq
+ sudo apt-get -y install bison \
+ autotools-dev \
+ libncurses5-dev \
+ libevent-dev \
+ pkg-config \
+ libutempter-dev \
+ build-essential
+fi
diff --git a/.github/travis/build.sh b/.github/travis/build.sh
new file mode 100644
index 00000000..cbd4e45b
--- /dev/null
+++ b/.github/travis/build.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+sh autogen.sh || exit 1
+if [ "$BUILD" = "static" ]; then
+ ./configure --enable-static || exit 1
+else
+ ./configure || exit 1
+fi
+exec make
diff --git a/.travis.yml b/.travis.yml
index fd85bf61..6beb5799 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,16 +1,29 @@
language: c
os:
- - linux
- - osx
+ - linux
+ - osx
compiler:
- - gcc
- - clang
+ - gcc
+ - clang
+
+env:
+ - BUILD=
+ - BUILD=static
+
+jobs:
+ exclude:
+ - os: osx
+ - compiler: gcc
+ - env: BUILD=static
+ exclude:
+ - os: osx
+ - compiler: clang
+ - env: BUILD=static
before_install:
- - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
- - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -y install bison autotools-dev libncurses5-dev libevent-dev pkg-config libutempter-dev build-essential; fi
+ - sh .github/travis/before-install.sh
script:
- - ./autogen.sh && ./configure && make
+ - sh .github/travis/build.sh