Redo travis config in line with modern options

This commit is contained in:
Tom Parker-Shemilt 2020-03-14 17:21:23 +00:00
parent 94637bb65d
commit c4fa7f7a9a

View File

@ -1,21 +1,22 @@
matrix: # These two are defaults, which get overriden by the jobs matrix
language: minimal
os: linux
jobs:
include: include:
- language: objective-c - language: objective-c
os: osx
osx_image: xcode8.3 osx_image: xcode8.3
- language: bash - language: bash
sudo: required
dist: xenial dist: xenial
os: linux
env: BUILD_DESTINATION=snapcraft env: BUILD_DESTINATION=snapcraft
- language: python - language: python
sudo: required os: linux
dist: xenial dist: xenial
python: 3.6 python: 3.6
env: BUILD_DESTINATION=appimage env: BUILD_DESTINATION=appimage
branches:
only:
- master
script: script:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then python3 buildPy2app.py py2app ; fi - if [ "$TRAVIS_OS_NAME" == "osx" ]; then python3 buildPy2app.py py2app ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "snapcraft" ]; then sudo snapcraft cleanbuild ; fi - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "snapcraft" ]; then sudo snapcraft cleanbuild ; fi