Move build script out of .travis.yml

pull/13/head
nirenjan 2017-07-27 17:09:16 -07:00
parent 45c66a4f1a
commit dc352c58da
2 changed files with 25 additions and 1 deletions

View File

@ -1,5 +1,5 @@
language: c
script: ./autogen.sh && ./configure && make V=0 && make distcheck
script: ./.travis_build.sh
# Compile using both gcc & clang
compiler:

24
.travis_build.sh 100755
View File

@ -0,0 +1,24 @@
#!/bin/bash
# Script to run automated build and testing on Travis-CI
# Abort early in case of failure
set -e
# Generate the build files
./autogen.sh
# Create a temporary directory to store build artifacts
rm -rf build
mkdir build
cd build
# Run the configuration script
../configure
# Build and run any tests
make V=0
make check
# Verify that the distribution works
make distcheck