mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Set repositories using sourceline.
This commit is contained in:
parent
8306d36aae
commit
5b274f3efc
1 changed files with 11 additions and 11 deletions
22
.travis.yml
22
.travis.yml
|
@ -4,12 +4,23 @@ matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: 'ppa:beineri/opt-qt487-trusty'
|
||||||
|
packages:
|
||||||
|
- opt-qt4-qmake opt-qt4-dev-tools
|
||||||
sudo: required
|
sudo: required
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env:
|
env:
|
||||||
- QT_BASE=48
|
- QT_BASE=48
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: 'ppa:beineri/opt-qt-5.10.1-trusty'
|
||||||
|
packages:
|
||||||
|
- qt510base
|
||||||
sudo: required
|
sudo: required
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env:
|
env:
|
||||||
|
@ -20,22 +31,11 @@ matrix:
|
||||||
- QT_BASE=57
|
- QT_BASE=57
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
||||||
if [[ "$QT_BASE" = "48" ]]; then sudo add-apt-repository ppa:beineri/opt-qt487-trusty -y; fi
|
|
||||||
if [[ "$QT_BASE" = "510" ]]; then sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y; fi
|
|
||||||
sudo apt-get update -qq;
|
|
||||||
fi
|
|
||||||
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||||
brew update;
|
brew update;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
||||||
if [ "$QT_BASE" = "48" ]; then sudo apt-get --allow-unauthenticated install -qq opt-qt4-qmake opt-qt4-dev-tools; source /opt/qt-4.8/bin/qt-4.8-env.sh; fi
|
|
||||||
if [ "$QT_BASE" = "510" ]; then sudo apt-get install -qq qt510base; source /opt/qt510/bin/qt510-env.sh; fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||||
brew install qt5;
|
brew install qt5;
|
||||||
brew link --force qt5;
|
brew link --force qt5;
|
||||||
|
|
Loading…
Reference in a new issue