代码拉取完成,页面将自动刷新
language: cpp
env:
global:
- DEVELOPER_ID_CERTIFICATE_P12="deploy/developer-id.p12"
cache:
directories:
- $TRAVIS_BUILD_DIR/cache/
matrix:
include:
- os: linux
dist: bionic
before_install:
- sudo apt-get update -qq
- sudo apt-get install devscripts build-essential lintian dh-make
- sudo apt-get install qt5-default libqt5quick5 libqt5qml5 qtdeclarative5-dev libqt5x11extras5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-gl gstreamer1.0-libav gstreamer1.0-qt5 libqt5concurrent5 qml-module-qt-labs-settings qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-controls qml-module-qtquick-shapes qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-dialogs
- sudo apt-get install libgstreamer1.0-0 libgstreamer1.0-dev gstreamer1.0-gl gstreamer1.0-alsa gstreamer1.0-plugins-base libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good libgstreamer-plugins-good1.0-dev
compiler:
- gcc
script:
- echo $TRAVIS_TAG
- qmake QOpenHD.pro CONFIG+=release
- make
- os: osx
osx_image: xcode11.2
before_install:
- openssl aes-256-cbc -K $encrypted_9ef4f27e2944_key -iv $encrypted_9ef4f27e2944_iv -in deploy/developer-id.p12.enc -out ${DEVELOPER_ID_CERTIFICATE_P12} -d
- export KEYCHAIN=build.keychain;
- security create-keychain -p openhd ${KEYCHAIN}
- security default-keychain -s ${KEYCHAIN}
- security unlock-keychain -p openhd ${KEYCHAIN}
- security set-keychain-settings -t 3600 -u $KEYCHAIN
- security import ${DEVELOPER_ID_CERTIFICATE_P12} -k ${KEYCHAIN} -P "" -T /usr/bin/codesign
- wget -qO- "https://github.com/crazy-max/travis-wait-enhanced/releases/download/v1.1.0/travis-wait-enhanced_1.1.0_darwin_x86_64.tar.gz" | tar -zxvf - travis-wait-enhanced
- ./travis-wait-enhanced --version
- brew install qt5
- brew link qt5 --force
- mkdir -p cache
- if ! [ -f ./cache/gstreamer-1.0-1.14.4-x86_64.pkg ]; then travis_wait curl -v -o ./cache/gstreamer-1.0-1.14.4-x86_64.pkg https://gstreamer.freedesktop.org/data/pkg/osx/1.14.4/gstreamer-1.0-1.14.4-x86_64.pkg; fi
- if ! [ -f ./cache/gstreamer-1.0-devel-1.14.4-x86_64.pkg ]; then travis_wait curl -v -o ./cache/gstreamer-1.0-devel-1.14.4-x86_64.pkg https://gstreamer.freedesktop.org/data/pkg/osx/1.14.4/gstreamer-1.0-devel-1.14.4-x86_64.pkg; fi
- echo "Cached source dir:"
- ls -l ./cache/
- echo "Installing GStreamer"
- sudo installer -package ./cache/gstreamer-1.0-1.14.4-x86_64.pkg -target /
- sudo installer -package ./cache/gstreamer-1.0-devel-1.14.4-x86_64.pkg -target /
script:
- ./travis-wait-enhanced -- qmake QOpenHD.pro CONFIG+=release
- ./travis-wait-enhanced -- make -j5
- os: windows
before_install:
- dir C:/Program\ Files\ \(x86\)/Windows\ Kits/10/bin/10.0.17134.0/x64
- cmd.exe /C 'cd && "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
x86 && cd && cd "C:/Users/travis/build/infincia/QOpenHD" && dir'
- curl -LfsS -o /tmp/travis-wait-enhanced.zip "https://github.com/crazy-max/travis-wait-enhanced/releases/download/v1.1.0/travis-wait-enhanced_1.1.0_windows_x86_64.zip"
- 7z x /tmp/travis-wait-enhanced.zip -y -o/usr/bin/ travis-wait-enhanced.exe -r
- travis-wait-enhanced --version
- mkdir -p cache
- if ! [ -f ./cache/gstreamer-1.0-x86-1.14.4.msi ]; then curl -LfsS -o ./cache/gstreamer-1.0-x86-1.14.4.msi https://gstreamer.freedesktop.org/data/pkg/windows/1.14.4/gstreamer-1.0-x86-1.14.4.msi; fi
- if ! [ -f ./cache/gstreamer-1.0-devel-x86-1.14.4.msi ]; then curl -LfsS -o ./cache/gstreamer-1.0-devel-x86-1.14.4.msi https://gstreamer.freedesktop.org/data/pkg/windows/1.14.4/gstreamer-1.0-devel-x86-1.14.4.msi; fi
- echo "Cached source dir:"
- ls -l ./cache/
- msiexec /package ./cache/gstreamer-1.0-x86-1.14.4.msi /passive ADDLOCAL=ALL
- msiexec /package ./cache/gstreamer-1.0-devel-x86-1.14.4.msi /passive ADDLOCAL=ALL
- curl -vLO http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe
- travis-wait-enhanced install_qt.bat
- ls -la C:/Qt/5.12.5/msvc2017/bin/qtenv2.bat
script:
- cmd.exe /C 'cd && "C:\Qt\5.12.5\msvc2017\bin\qtenv2.bat" && cd && "C:\Program
Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
x86 && cd "C:\Users\travis\build\infincia\QOpenHD" && cd && qmake QOpenHD.pro
&& nmake'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。