Add ccache and make MPV install to the right location.
This commit is contained in:
parent
f801b59c7e
commit
dc08a1a4cb
11
.travis.yml
11
.travis.yml
|
@ -2,14 +2,7 @@ language: cpp
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
sudo: require
|
sudo: require
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
cache: ccache
|
||||||
cache:
|
|
||||||
apt: true
|
|
||||||
ccache: true
|
|
||||||
directories:
|
|
||||||
- /var/cache/apt/archives
|
|
||||||
paths:
|
|
||||||
- /var/cache/apt/archives
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
|
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
|
||||||
|
@ -21,6 +14,7 @@ install:
|
||||||
- source /opt/qt*/bin/qt*-env.sh
|
- source /opt/qt*/bin/qt*-env.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- export PATH="/usr/lib/ccache:$PATH"
|
||||||
- bash scripts/build-mpv.sh
|
- bash scripts/build-mpv.sh
|
||||||
- qmake CONFIG+=release PREFIX=/usr
|
- qmake CONFIG+=release PREFIX=/usr
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
|
@ -48,3 +42,4 @@ branches:
|
||||||
except:
|
except:
|
||||||
- # Do not build tags that we create when we upload to GitHub Releases
|
- # Do not build tags that we create when we upload to GitHub Releases
|
||||||
- /^(?i:continuous)/
|
- /^(?i:continuous)/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
git clone --depth 1 https://github.com/mpv-player/mpv-build
|
git clone --depth 1 https://github.com/mpv-player/mpv-build
|
||||||
cd mpv-build
|
cd mpv-build
|
||||||
|
|
||||||
echo --enable-libmpv-shared > mpv_options
|
echo --enable-libmpv-shared --prefix=/usr > mpv_options
|
||||||
echo --disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient > mpv_options
|
echo --disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient > mpv_options
|
||||||
|
|
||||||
./rebuild -j`nproc`
|
./rebuild -j`nproc`
|
||||||
|
|
Loading…
Reference in a new issue