manuskript/.travis.yml

35 lines
2.3 KiB
YAML
Raw Normal View History

2018-10-31 05:36:25 +13:00
language: generic
2017-11-03 02:44:49 +13:00
os:
- osx
2018-10-31 05:36:25 +13:00
- linux
Remove support for macOS X Sierra (10.12) in Travis CI build The Travis CI builds for macOS X are failing because there are no Homebrew bottles (packages) for macOS X Sierra (10.12). The error message in the Travis CI log is: ... # Upgrade to python 3.x brew upgrade python Warning: You are using macOS 10.12. We (and Apple) do not provide support for this old version. ... Note that by default the Travis CI will terminate a build after 10 minutes if no output has been received. Unfortunately building qt from source code may take hours, so installation using a Homebrew bottle is required. To address this issue, choose a macOS X version that has a Homebrew bottle for qt [1]. [1] https://formulae.brew.sh/formula/qt The homebrew project currently lists having a qt bottle for: - Catalina (10.15) - Mojave (10.14) - High Sierra (10.13) No bottle is listed for macOS Sierra (10.12) In order to support as many versions of macOS X as possible, choose the lowest osx_image value [2] that is currently supported with a homebrew bottle. [2] https://docs.travis-ci.com/user/reference/osx#os-x-version At this time osx_image value xcode9.3 is listed as supporting OS X 10.13. Unfortunately xcode9.3 did not work in the Travis CI build. By following the suggestions for troubleshooting homebrew [3] a discovery was made that a higher value of xcode10.1 was required. [3] https://docs.brew.sh/Troubleshooting Suggestion was to use "brew update" twice and "brew doctor" twice. The messages in the log were as follows: ... Warning: Your Xcode (9.3) is outdated. Please update to Xcode 10.1 (or delete it). ... Now try setting osx_image value to xcode10.1 which is listed as supporting OS X 10.13.
2020-01-02 09:34:32 +13:00
osx_image: xcode10.1
2017-11-03 02:44:49 +13:00
sudo: required
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then package/prepare_osx.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then package/prepare_linux.sh; fi
2017-11-03 02:44:49 +13:00
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 -B -m pytest -vs; fi
2018-10-31 05:36:25 +13:00
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then xvfb-run -s '-screen 0 640x480x24 +extension GLX' pytest -vs; fi
2017-11-03 02:44:49 +13:00
before_deploy:
- export FILENAME=manuskript-$TRAVIS_BRANCH-$TRAVIS_OS_NAME.zip
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then package/build_osx.sh; fi
2017-11-03 02:44:49 +13:00
deploy:
2017-11-30 06:41:45 +13:00
- provider: releases
api_key:
secure: lKuWQ9NWkLfDkkAiSnMh2PYkAGE1xh4pkSN5Ceb2IF9ee9i9YrJ9YFcvh420JSP+BYUl1OKczC5b3d9hUUZcfMwUkuZqPFCehOWP0O8dNs3XKZtmSU4POwR8lx7jRSO132qV/zgthBTK8PbeC2jIiMF4+4ESMsuEDptmGSOhgHtOcdJNDNz8gTbygXZVcl4U04se1ywtL62UQcTNMEKKLeBYQlrAXpcPiw4Htv9spEx6BewgarhRvJ/hysqeJgrH4wUVcjFw6Djppu3fmhrvgtaIU3ONxMLqgCuBZa03Q2LuF/RTYl9/DUgIjqsm1aOVooQZttYsUYWrLfyZNnLGD4WkdILcTMyexEVpQ/ejcEPm8gCf2PtklRtENZIxV2eQkLcPuSAPGWC8ue6a1etIUbYDbMT47SsdwkUsbyPpT8bnBvPf7gfmH/e20b1UQtxgmE5GDpbYZCTHf0kvwIFrBQzNmCtiGsXGJxIVx4msndplh8MdWFDBTEr0Ca8Tt45Fp/QPU7KAmdlQog9fWOfnJezIlBpFAXDa+AN2b/9uE+led5fmqQ62nuvjsYvWmJti2NW0IJ8UI26JGfh4Z1offE2bYp4onimfbRXSXWQs+Dm2l4CdTkc3habSWoUMw2R8mGbEfgfhzTFiAryg1mCtWy8AxUgfcUurd6BCwipH1ck=
file: dist/$FILENAME
overwrite: true
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = osx
2017-11-30 06:41:45 +13:00
tags: true
- provider: script
2017-11-30 10:52:26 +13:00
script: "curl -T dist/manuskript-osx-develop.zip -u hfpn_semaphoreci:$FTP_PASSWORD ftp://www.theologeek.ch/web/manuskript/releases/ -v"
2017-11-30 06:41:45 +13:00
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = osx
2017-11-30 06:41:45 +13:00
branch: develop
2017-11-30 04:44:44 +13:00
env:
global:
secure: LCEMJ4+mBd+2tzI3CDf7WMD+5tDMQbT5y/r7beKOa/c3+0Iyce3U5Q9dxYRB8Y3V46euLElySOQIdgBMp08h1Ph2L8oFvrgKwSk5/n8Nnvpe5NSmfkPPqIyiuxmKGecjsW8dJ0f18OVyN85JueOaSov6gMcqZkIQqKEw5CXdClg678wbNmfKcSO1oTe+UKZ+uJjeZGBlsPiID78dximbD59r6Au71gDb/iW124pSKcpluBHR2auUMi8WXoff3nvgbTm0So/K137OlB7pqzy5YHrqZg+kQ+SnLh47/TAjLclYEgbBRlrpBNMqmZXH+B99qhl0HdHglSGqltwEUc48r46j26lQFjqD5ng0XWZFS44MyBdQFdq/s4HyCzlQKranT/q6HFrRZQwsb7eFfJNS4JmaGX3LB7v+IQJh4vMVtizrIYenVwdeGMJWrRA+3VHO9GYTcvCDNpQG/ZWWcjLxxENtUlI+DVyNq7L8gZI5tFAHypsmcqweAq0II7rOwiNoj4Vib5vfvC2n6BAISTuojMMcBOHqOIci4WkroheZGtoF49kc936zOnOFPlauqkB8lq2AS4xd9Y4PDf6YGs+HE23Sx8Jy/c/WPKItQ+aP4nnIcgP8I6BCJfjSvZdAU+S/KzVd5Wrke7pwHiCX9T9hs8npFpNishDMTPChKTy7MRQ=