Permalink
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (89 sloc) 5.26 KB
matrix:
include:
- os: linux
dist: trusty
sudo: required
# https://bugreports.qt.io/browse/QTBUG-64928
#addons:
# apt:
# sources:
# - sourceline: "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe"
# packages:
# - xvfb
- os: osx
osx_image: xcode7.3
#osx_image: xcode6.4
#language: python
#cache: pip
install:
#- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe" | sudo tee -a /etc/apt/sources.list; fi
#- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-get -y update; fi
#- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-get -y install build-essential xvfb; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pyenv install --list; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pyenv versions; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pyenv install --skip-existing 2.7.14; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pyenv install --skip-existing 3.5.4; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pyenv install --skip-existing 3.6.3; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pyenv rehash; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pyenv global 2.7.14 3.6.3 3.5.4; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then sw_vers; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew upgrade python pyenv; fi
#- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install python@2; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew list; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then pyenv install --list; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then pyenv versions; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 2.7.15; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.5.6; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.7; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then pyenv rehash; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then pyenv global 2.7.15 3.6.7 3.5.6; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export PATH=~/.pyenv/shims:$PATH; fi
- pyenv versions
- echo $PATH
- which python && python --version
- which python2 && python2 --version
- which python2.7 && python2.7 --version
- which python3 && python3 --version
- which python3.5 && python3.5 --version
- which python3.6 && python3.6 --version
- python2 -m pip install --upgrade setuptools pip
- python3 -m pip install --upgrade setuptools pip
- python3 -m pip install --upgrade tox coveralls
- python3 -m virtualenv --version
script:
- python3 -m tox
- make all
- dist/Tahoe-LAFS/tahoe --version-and-path
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then xvfb-run -a dist/Gridsync/gridsync --version; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then dist/Gridsync.app/Contents/MacOS/Gridsync --version; fi
after_success:
- coveralls
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then python scripts/upload_artifacts.py dist/Gridsync.tar.gz; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then python scripts/upload_artifacts.py dist/Gridsync.dmg; fi
notifications:
email: false
irc:
channels: "chat.freenode.net#gridsync"
skip_join: true
use_notice: true
template:
- "[%{repository_name}:%{branch}] %{commit}: %{commit_subject} (%{author}) %{message}"
- "Details: %{build_url} | Changes: %{compare_url}"
before_deploy:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then mv dist/Gridsync.tar.gz dist/Gridsync-Linux.tar.gz; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then mv dist/Gridsync.dmg dist/Gridsync-Mac.dmg; fi
deploy:
provider: releases
api_key:
secure: Sz/ABAcjcGZNuQ7K4KOtZJniW+ICsaxwrS0P2aAzaxrMQT8Ha/hnZ/yavZpI5azzUdC4i48Pu9Rv+OdlHDwPQkBpIIXYRTNlo3fPHSZv344HpTFu1tlJVuB0KXmXG04Abu5anEShV9MFJKrBe9sORBiIr1AQFCF0d5Gi5nVsRHm+kGy1NL4NnzFKJ5mE/yvAMdUXz2wi/lJR2z/0UkJJW6jIXNpsa/2G6HIQelYzAh8rlIJbpWzLWGpMvRlzqS3yl8EwrcCkb2IqVeSSamlq3SwyoinHf8+rlU/W8uiTnyOo5OPhKMknuUlLJkthMsdIUDWQILRd69peLoNAfwFusyvL229tdfLi5YYcRRM5QyQ0Vjy6YYKihwg0LRUg3NDLqA5YCOYszyzm6TzZlsF3niLe+ocIiqhueQdj4QwAMaagO1Ub2rFvrIGmO78oWfA7UzQCutJcZ66ETQyUdTANrDMZAKpwIzprz0v2NFkSyqLi7HkgPKREeV+nxGAVS0Gtw+EO0b3eF9JMJmly/qI+6yA4Rz/PqgLVz94X0fQnU6Eh2IzDhYn31SXo8fVMdxglV5KeStLvA8ofKA3VhVC+6U+u+4OwtIdFNMWZNlTFkT8uqVHcSPfNEU3gVpWu9ObM4e9yNJzcc7Cxx8+oN/+iWVy0BCetMxmQMBriW5vcCXU=
file_glob: true
file: dist/Gridsync-*.*
skip_cleanup: true
draft: false
prerelease: true
on:
tags: true
env:
global:
secure: oxxJE7tFHxX5C0rP2eX0A0Y1U/NFOjNwg8NxYRj0UBuc/GHVZjvWwhuCU+IfwBXrrcDp8S899jvGZHJb85XFKgLC6Yu6JCgk+9zRuL8fIsMxIQQpCTfYPnrRJch2du5oGfX9087Bu9abr0t8BG0bAgMgT08sOKlI+GUwX1UEJ8cRHHBULR8MiKmP8jEAjJ7jcpppIGuXl8Cg6MN7MNZxdZ2K4EMgR4cFQklPzFo5o/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