Address doc and docstring feedback from mwichmann
[scons.git] / .travis / install.sh
blob942aeab76cd67442a91163e92ed83da0d57de61e
1 #!/usr/bin/env bash
2 set -x
4 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
5 echo "OSX"
6 brew install python --framework --universal
7 else
8 # dependencies for clang tests
9 sudo apt-get -y install clang
11 # setup clang for clang tests using local clang installation
12 if [ ! -f /usr/local/clang-5.0.0/bin/clang ]; then
13 echo "No Clang 5.0.0 trying 7.0.0"
14 sudo ln -s /usr/local/clang-7.0.0/bin/clang /usr/bin/clang
15 sudo ln -s /usr/local/clang-7.0.0/bin/clang++ /usr/bin/clang++
16 else
17 echo "Clang 5.0.0"
18 sudo ln -s /usr/local/clang-5.0.0/bin/clang /usr/bin/clang
19 sudo ln -s /usr/local/clang-5.0.0/bin/clang++ /usr/bin/clang++
22 # dependencies for rpm packaging tests
23 sudo apt-get -y install rpm
25 # dependencies for gdc tests
26 sudo apt-get -y install gdc
28 # dependencies for fortran tests
29 sudo apt-get -y install gfortran
31 # dependencies for docbook tests
32 sudo apt-get -y install docbook-xml docbook-xsl xsltproc libxml2-dev libxslt-dev fop docbook-xsl-doc-pdf
33 # docbook-slides should be added but triggers GH #3393 so left out for now.
35 # dependencies for latex tests (try to skip the huge doc pkgs)
36 sudo apt-get -y --no-install-recommends install texlive texlive-latex3 biber texmaker ghostscript texlive-bibtex-extra texlive-latex-extra texlive-font-utils
37 # texlive-latex3 no longer exists, failover to texlive-latex-recommended
39 # need some things for building dependencies for other tests
40 sudo apt-get -y install python-pip python-dev build-essential libpcre3-dev autoconf automake libtool bison subversion git
42 # dependencies for D tests
43 sudo wget https://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
44 sudo apt-get update --allow-insecure-repositories
45 sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring
46 sudo apt-get update && sudo apt-get install dmd-compiler dub
49 if [[ "$BUILD_LXML_FROM_GIT" == "1" ]]; then
50 pip uninstall -y lxml
51 pip cache purge
53 # for ubuntu 20.04 needed this as well
54 sudo apt install libxslt1-dev
56 # then use git versions of cython and lxml (lxml's cython build uses xslt1-config which is why the above was needed)
57 pip install git+https://github.com/cython/cython.git@0.29.x
58 pip install git+https://github.com/lxml/lxml.git
61 # sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
62 # wget -qO - https://dlang.org/d-keyring.gpg | sudo apt-key add -
63 # sudo apt-get update && sudo apt-get -y --allow-unauthenticated install dmd-bin
65 # dependencies for ldc tests
66 # this install method basically worked until 20.04, though a little messy.
67 # rather than further tweaking, replace it with the recommended snap install
68 #export SCONS_LDC_VERSION=1.21.0
69 #wget https://github.com/ldc-developers/ldc/releases/download/v${SCONS_LDC_VERSION}/ldc2-${SCONS_LDC_VERSION}-linux-x86_64.tar.xz
70 #tar xf ldc2-${SCONS_LDC_VERSION}-linux-x86_64.tar.xz
71 #sudo cp -rf ldc2-${SCONS_LDC_VERSION}-linux-x86_64/* /
72 sudo snap install ldc2 --classic
74 # Failing.. ?
75 # ls -l /usr/lib*/*python*{so,a}*