mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 06:00:20 +00:00
45c19fd11e
This is done via Fedora 27 which seemed the easiest way to get a 5.9 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
20 lines
805 B
Bash
20 lines
805 B
Bash
#!/bin/bash
|
|
|
|
# Travis only pulls shallow repos. But that messes with git describe.
|
|
# Sorry Travis, fetching the whole thing and the tags as well...
|
|
git fetch --unshallow
|
|
git pull --tags
|
|
git describe
|
|
|
|
# Ugly, but keeps it running during the build
|
|
docker run -v $PWD:/workspace/subsurface --name=builder -w /workspace -d fedora:27 /bin/sleep 60m
|
|
|
|
# Subsurface build dependencies
|
|
docker exec -t builder zypper refresh
|
|
docker exec -t builder dnf install -y \
|
|
git gcc-c++ make autoconf automake libtool cmake bzip2-devel \
|
|
libzip-devel libxml2-devel libxslt-devel libsqlite3x-devel \
|
|
libudev-devel libusbx-devel libcurl-devel libssh2-devel\
|
|
qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtscript-devel \
|
|
qt5-qtwebkit-devel qt5-qtsvg-devel qt5-qttools-devel \
|
|
qt5-qtconnectivity-devel qt5-qtlocation-devel
|