| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | if [scip-shell system . . `[`. "$FLATPAK" ]; then |
| 6 | sudoscip-shell system . . sudo. apt-get -y install flatpak flatpak-builder elfutils |
| 7 | flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo |
| 8 | flatpak --noninteractive install --user flathub org.kde.Platform//5.15 |
| 9 | flatpak --noninteractive install --user flathub org.kde.Sdk//5.15 |
| 10 | exit |
| 11 | fi |
| 12 | if [scip-shell system . . `[`. "$TRAVIS_OS_NAME" = "osx" ]; then |
| 13 | curlscip-shell system . . curl. https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
| 14 | sudoscip-shell system . . sudo. python get-pip.py |
| 15 | |
| 16 | sudoscip-shell system . . sudo. pip install --upgrade pip |
| 17 | sudoscip-shell system . . sudo. pip install dmgbuild |
| 18 | |
| 19 | export CMAKE_PREFIX_PATH=/usr/local/opt/qt5scip-shell filesystem . . `/usr/local/opt/qt5`. |
| 20 | fi |
| 21 | |
| 22 | |
| 23 | if [scip-shell system . . `[`. "$TRAVIS_OS_NAME" = "linux" ]; then |
| 24 | sudoscip-shell system . . sudo. update-alternatives --install /usr/bin/gccscip-shell filesystem . . `/usr/bin/gcc`. gcc "/usr/bin/${CC}" 10 |
| 25 | sudoscip-shell system . . sudo. update-alternatives --install /usr/bin/g++scip-shell filesystem . . `/usr/bin/g++`. g++ "/usr/bin/${CXX}" 10 |
| 26 | |
| 27 | sudoscip-shell system . . sudo. update-alternatives --set gcc "/usr/bin/${CC}" |
| 28 | sudoscip-shell system . . sudo. update-alternatives --set g++ "/usr/bin/${CXX}" |
| 29 | |
| 30 | wget https://cmake.org/files/v3.15/cmake-3.15.5-Linux-x86_64.sh |
| 31 | sudoscip-shell system . . sudo. sh cmake-3.15.5-Linux-x86_64.sh --skip-license --prefix=/usr/local |
| 32 | fi |