Skip to content

Commit

Permalink
Modernise build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke committed Aug 20, 2020
1 parent 12383c8 commit e99912c
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,45 @@ sudo: required
script: make test
matrix:
include:
- name: Swift 5
- name: Swift 5.1
os: osx
osx_image: xcode11
- name: Swift 5.2
os: osx
osx_image: xcode10.3
- name: Swift 5
osx_image: xcode11.4
- name: Swift 5.3
os: osx
osx_image: xcode12
- name: Swift 5.1
os: linux
dist: trusty
before_install:
# workaround for https://travis-ci.community/t/then-sudo-apt-get-update-failed-public-key-is-not-available-no-pubkey-6b05f25d762e3157-in-ubuntu-xenial/1728
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
- sudo apt update
- sudo apt install libavahi-compat-libdnssd-dev
- wget https://swift.org/builds/swift-5.0-release/ubuntu1404/swift-5.0-RELEASE/swift-5.0-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-5.0-RELEASE-ubuntu14.04.tar.gz
- export PATH=`pwd`/swift-5.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- name: Swift 5.1
os: osx
osx_image: xcode11
- wget https://swift.org/builds/swift-5.1-release/ubuntu1404/swift-5.1-RELEASE/swift-5.1-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-5.1-RELEASE-ubuntu14.04.tar.gz
- export PATH=`pwd`/swift-5.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- name: Validate against srptools library
os: linux
dist: trusty
before_install:
# workaround for https://travis-ci.community/t/then-sudo-apt-get-update-failed-public-key-is-not-available-no-pubkey-6b05f25d762e3157-in-ubuntu-xenial/1728
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
- sudo apt update
- sudo apt install libavahi-compat-libdnssd-dev
- wget https://swift.org/builds/swift-5.0-release/ubuntu1404/swift-5.0-RELEASE/swift-5.0-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-5.0-RELEASE-ubuntu14.04.tar.gz
- export PATH=`pwd`/swift-5.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- wget https://swift.org/builds/swift-5.1-release/ubuntu1404/swift-5.1-RELEASE/swift-5.1-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-5.1-RELEASE-ubuntu14.04.tar.gz
- export PATH=`pwd`/swift-5.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- python -V
- pip -V
- sudo pip install --upgrade pip
- sudo pip install srptools
script: make test-with-python
- name: Code Quality Checks
os: osx
osx_image: xcode10.3
osx_image: xcode11
install:
- brew update
- brew upgrade swiftlint || true
script: swiftlint --strict
- name: SonarCloud scanner
os: osx
osx_image: xcode11
addons:
sonarcloud:
organization: bouke-github
script:
- swiftlint --strict
- sonar-scanner
before_script: git fetch --unshallow --quiet
script: sonar-scanner

0 comments on commit e99912c

Please sign in to comment.