summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/install.sh79
1 files changed, 42 insertions, 37 deletions
diff --git a/.travis/install.sh b/.travis/install.sh
index 69e833a..17fd79f 100755
--- a/.travis/install.sh
+++ b/.travis/install.sh
@@ -1,44 +1,49 @@
#!/usr/bin/env bash
set -x
-# setup clang for clang tests using local clang installation
-
-
-if [ ! -f /usr/local/clang-5.0.0/bin/clang ]; then
- echo "No Clang 5.0.0 trying 7.0.0"
- sudo ln -s /usr/local/clang-7.0.0/bin/clang /usr/bin/clang
- sudo ln -s /usr/local/clang-7.0.0/bin/clang++ /usr/bin/clang++
+if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ echo "OSX"
else
- echo "Clang 5.0.0"
- sudo ln -s /usr/local/clang-5.0.0/bin/clang /usr/bin/clang
- sudo ln -s /usr/local/clang-5.0.0/bin/clang++ /usr/bin/clang++
-fi
+ # dependencies for clang tests
+ sudo apt-get -y install clang
-# dependencies for gdc tests
-sudo apt-get -y install gdc
-# dependencies for docbook tests
-sudo apt-get -y install docbook-xml xsltproc libxml2-dev libxslt-dev fop docbook-xsl-doc-pdf
-# dependencies for latex tests
-sudo apt-get -y install texlive texlive-latex3 biber texmaker ghostscript
-# need some things for building dependencies for other tests
-sudo apt-get -y install python-pip python-dev build-essential libpcre3-dev autoconf automake libtool bison subversion git
-# dependencies for docbook tests continued
-sudo pip install lxml
-# dependencies for D tests
-sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
-wget -qO - https://dlang.org/d-keyring.gpg | sudo apt-key add -
-sudo apt-get update && sudo apt-get -y --allow-unauthenticated install dmd-bin
-# dependencies for ldc tests
-wget https://github.com/ldc-developers/ldc/releases/download/v1.4.0/ldc2-1.4.0-linux-x86_64.tar.xz
-tar xf ldc2-1.4.0-linux-x86_64.tar.xz
-sudo cp -rf ldc2-1.4.0-linux-x86_64/* /
+ # setup clang for clang tests using local clang installation
+ if [ ! -f /usr/local/clang-5.0.0/bin/clang ]; then
+ echo "No Clang 5.0.0 trying 7.0.0"
+ sudo ln -s /usr/local/clang-7.0.0/bin/clang /usr/bin/clang
+ sudo ln -s /usr/local/clang-7.0.0/bin/clang++ /usr/bin/clang++
+ else
+ echo "Clang 5.0.0"
+ sudo ln -s /usr/local/clang-5.0.0/bin/clang /usr/bin/clang
+ sudo ln -s /usr/local/clang-5.0.0/bin/clang++ /usr/bin/clang++
+ fi
-ls -l /usr/lib/*python*{so,a}*
+ # dependencies for gdc tests
+ sudo apt-get -y install gdc
+ # dependencies for docbook tests
+ sudo apt-get -y install docbook-xml xsltproc libxml2-dev libxslt-dev fop docbook-xsl-doc-pdf
+ # dependencies for latex tests
+ sudo apt-get -y install texlive-full biber texmaker
+ # need some things for building dependencies for other tests
+ sudo apt-get -y install python-pip python-dev build-essential libpcre3-dev autoconf automake libtool bison subversion git
+ # dependencies for docbook tests continued
+ sudo pip install lxml
+ # dependencies for D tests
+ sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
+ wget -qO - https://dlang.org/d-keyring.gpg | sudo apt-key add -
+ sudo apt-get update && sudo apt-get -y --allow-unauthenticated install dmd-bin
+ # dependencies for ldc tests
+ wget https://github.com/ldc-developers/ldc/releases/download/v1.4.0/ldc2-1.4.0-linux-x86_64.tar.xz
+ tar xf ldc2-1.4.0-linux-x86_64.tar.xz
+ sudo cp -rf ldc2-1.4.0-linux-x86_64/* /
-# For now skip swig if py27
-if [[ "$PYVER" == 27 ]]; then
- # dependencies for swig tests
- wget https://github.com/swig/swig/archive/rel-3.0.12.tar.gz
- tar xzf rel-3.0.12.tar.gz
- cd swig-rel-3.0.12 && ./autogen.sh && ./configure --prefix=/usr && make && sudo make install && cd ..
-fi \ No newline at end of file
+ ls -l /usr/lib/*python*{so,a}*
+
+ # For now skip swig if py27
+ if [[ "$PYVER" == 27 ]]; then
+ # dependencies for swig tests
+ wget https://github.com/swig/swig/archive/rel-3.0.12.tar.gz
+ tar xzf rel-3.0.12.tar.gz
+ cd swig-rel-3.0.12 && ./autogen.sh && ./configure --prefix=/usr && make && sudo make install && cd ..
+ fi
+fi