-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from antwal/master
General changes from antwal
- Loading branch information
Showing
5 changed files
with
210 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
/install-sh | ||
/missing | ||
/src/stamp-h1 | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
language: c | ||
|
||
sudo: required | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
env: OSNAME="linux" | ||
- os: osx | ||
osx_image: xcode9 | ||
env: OSNAME="osx" OSVERSION="10.13" OSBUILD="brew" | ||
- os: osx | ||
osx_image: xcode8.3 | ||
env: OSNAME="osx" OSVERSION="10.12" OSBUILD="brew" | ||
- os: osx | ||
osx_image: xcode8 | ||
env: OSNAME="osx" OSVERSION="10.11" OSBUILD="brew" | ||
- os: osx | ||
osx_image: xcode6.4 | ||
env: OSNAME="osx" OSVERSION="10.10 10.9" OSBUILD="sources" | ||
|
||
compiler: gcc | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: change | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- automake | ||
- autoconf | ||
- libtool | ||
- m4 | ||
- gettext | ||
|
||
before_install: | ||
- chmod a+x ./travis-before_install.sh | ||
- ./travis-before_install.sh | ||
|
||
script: | ||
- ./autogen.sh | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure --disable-nls; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./configure; fi | ||
- make all | ||
|
||
after_script: | ||
- set +e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
m4: add folder for travis build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y gettext autopoint | ||
|
||
fi | ||
|
||
|
||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then | ||
|
||
case "${OSBUILD}" in | ||
brew) | ||
# Install some custom requirements on OS X from brew | ||
# Force update homebrew | ||
cd "$(brew --repo)" | ||
git fetch | ||
git reset --hard origin/master | ||
brew update | ||
# Try install gettext | ||
brew install gettext | ||
brew link --force gettext | ||
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile | ||
# Check what paths it tells you to use, for a standard install, the following should suffice: | ||
export PATH="/usr/local/opt/gettext/bin:$PATH" | ||
cd ~/ | ||
;; | ||
sources) | ||
# Install some custom requirements on OS X from sources | ||
export build=~/devtools | ||
mkdir -p $build | ||
## | ||
# Autoconf | ||
## | ||
cd $build | ||
echo "Build autoconf..." >&2 | ||
curl -OL https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz | ||
tar xzf autoconf-2.69.tar.gz | ||
cd autoconf-2.69 | ||
./configure --prefix=/usr/local | ||
make | ||
sudo make install | ||
export PATH=$PATH:/usr/local/bin | ||
## | ||
# Automake | ||
## | ||
cd $build | ||
echo "Build automake..." >&2 | ||
curl -OL https://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz | ||
tar xzf automake-1.15.tar.gz | ||
cd automake-1.15 | ||
./configure --prefix=/usr/local | ||
make | ||
sudo make install | ||
## | ||
# Libtool | ||
## | ||
cd $build | ||
echo "Build libtool..." >&2 | ||
curl -OL https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.gz | ||
tar xzf libtool-2.4.6.tar.gz | ||
cd libtool-2.4.6 | ||
./configure --prefix=/usr/local | ||
make | ||
sudo make install | ||
## | ||
# GetText | ||
# | ||
cd $build | ||
echo "Build gettext..." >&2 | ||
curl -OL https://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.gz | ||
tar zxf gettext-0.19.8.1.tar.gz | ||
cd gettext-0.19.8.1 | ||
./configure --prefix=/usr/local | ||
make | ||
sudo make install | ||
## | ||
# Installation Complete | ||
## | ||
echo "Installation Complete." >&2 | ||
cd ~/ | ||
;; | ||
esac | ||
|
||
fi |