| 1 | #!/usr/bin/env sh |
| 2 | ## |
| 3 | ## Copyright (c) 2015, 2016, 2017, 2018, 2019 The University of Utah |
| 4 | ## Copyright (c) 2015 Tamir Duberstein |
| 5 | ## All rights reserved. |
| 6 | ## |
| 7 | ## This file is distributed under the University of Illinois Open Source |
| 8 | ## License. See the file COPYING for details. |
| 9 | ## |
| 10 | |
| 11 | ############################################################################### |
| 12 | |
| 13 | # This script is run under "sudo". See file ".travis.yml". |
| 14 | |
| 15 | set -eux |
| 16 | |
| 17 | apt-get update -qq |
| 18 | |
| 19 | # The Travis-CI Ubuntu 18.04 ("bionic") build environment has LLVM and Clang |
| 20 | # preinstalled. They interfere with our installations of these packages. |
| 21 | apt-get remove -y -qq \ |
| 22 | clang \ |
| 23 | llvm \ |
| 24 | llvm-runtime |
| 25 | |
| 26 | # Install programs "add-apt-repository" and "wget", needed below. |
| 27 | apt-get install -y -qq \ |
| 28 | software-properties-common \ |
| 29 | wget |
| 30 | |
| 31 | # Set up for installing LLVM 9.0. |
| 32 | # See <https://wiki.ubuntu.com/ToolChain>. |
| 33 | # See <http://llvm.org/apt/>. |
| 34 | # Key must be added before doing `apt-add-repository ... apt.llvm.org ...`. |
| 35 | wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - |
| 36 | # |
| 37 | add-apt-repository -y \ |
| 38 | ppa:ubuntu-toolchain-r/test |
| 39 | add-apt-repository -y \ |
| 40 | 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main' |
| 41 | apt-get update -qq |
| 42 | |
| 43 | # Install LLVM 9.0. See file "INSTALL.md". |
| 44 | apt-get install -y -qq \ |
| 45 | llvm-9 \ |
| 46 | llvm-9-dev \ |
| 47 | clang-9 \ |
| 48 | libclang-9-dev \ |
| 49 | clang-format-9 \ |
| 50 | libedit-dev |
| 51 | |
| 52 | # Install other C-Reduce dependencies. See file "INSTALL.md". |
| 53 | apt-get install -y -qq \ |
| 54 | libexporter-lite-perl \ |
| 55 | libfile-which-perl \ |
| 56 | libgetopt-tabular-perl \ |
| 57 | libregexp-common-perl \ |
| 58 | libterm-readkey-perl \ |
| 59 | flex \ |
| 60 | build-essential \ |
| 61 | zlib1g-dev |
| 62 | |
| 63 | ############################################################################### |
| 64 | |
| 65 | ## End of file. |