solvespace/.travis.yml

127 lines
4.0 KiB
YAML
Raw Normal View History

git:
submodules: false
jobs:
allow_failures:
- stage: deploy
name: Snap arm64
2019-09-20 08:36:21 +00:00
include:
- stage: test
name: "Debian"
os: linux
dist: bionic
2019-09-23 02:30:20 +00:00
language: c
install: ./.travis/install-debian.sh
script: ./.travis/build-debian.sh
- stage: deploy
name: "OSX"
os: osx
2019-09-23 02:30:20 +00:00
osx_image: xcode8.3
language: c
install: ./.travis/install-macos.sh
# the awk command is a workaround for https://github.com/travis-ci/travis-ci/issues/4704.
script: ./.travis/build-macos.sh | awk '/.{0,32}/ {print $0}'
2019-09-23 02:30:20 +00:00
deploy:
provider: releases
api_key:
secure: dDlkIawHcODlW9B/20/cQCtzeoocvs0hKuNngRKXKqzXLWTRq33oq/B7+39tAixWbmv6exTpijiKrRNFiSCW5Z4iwHLwaRD4XJznxw63e/Hus/dxg2Tvqx7XFpkCz8mT1Z+gZQE5YxAngeZPpI/sZbZtF1UO3yH5eLeeokZ15p26ZskQUPoYuzrTgTzYL3XfpG3F+20rNBawH1ycsCTVD/08/n31d2m3CrKAsbW7er92ek6w4fzKr7NW8WeXjrPJETVpw5fQg1Od3pRGW8dPQaJcvKQEogMp8Mm0ETYd0qigg89/giBz7QwOgmAWQ4dH+DfZH4Ojl//127QztBolMvyDMQBykWrtJoGcij05sT6K2IJr2FHeUBO12MAEdjiVvhQj3DtTzjPiZAHHDBSLWxLKWWhlhHE4pq7g1MQhqXkaAHI2BLNzwLmaowbMT0bECf9yfz6xx18h6XPQFX44oOktraobVALFlyHqeKa8zdcUt22LF6uAL1m5dxL0tny3eXCIPE4UH/RZgua/cHV9G3cUvKQa/QnFSLRhvWVSbGB+7YsHouBJcsUOOW1gmd5442XuC7mpppccRldh+GSxUk6TBJRAx7TeQ0ybDUaoco9MUqp2twv3KreR2+8Q12PDaAhfQVNEGdF3wTm1sShImjCN4VN3eSLlBEbve1QRQXM=
skip_cleanup: true
file: build/SolveSpace.dmg
on:
repo: solvespace/solvespace
tags: true
- &deploy-snap
stage: deploy
name: Snap amd64
os: linux
arch: amd64
dist: bionic
addons:
2020-02-22 07:11:39 +00:00
snaps:
- name: snapcraft
confinement: classic
script: ./.travis/build-snap.sh
deploy:
- provider: script
script: sudo ./.travis/deploy-snap.sh edge
skip_cleanup: true
on:
branch: master
2020-07-31 07:15:23 +00:00
repo: solvespace/solvespace
tags: false
- provider: script
script: sudo ./.travis/deploy-snap.sh edge,beta
skip_cleanup: true
on:
2020-02-22 08:11:05 +00:00
repo: solvespace/solvespace
tags: true
- <<: *deploy-snap
name: Snap arm64
arch: arm64
2019-09-23 02:30:20 +00:00
- &linux
2019-11-27 06:09:27 +00:00
stage: deploy
2019-09-23 02:30:20 +00:00
os: linux
2019-09-24 06:04:44 +00:00
dist: bionic
2019-09-23 05:28:43 +00:00
language: python
2019-09-23 02:30:20 +00:00
python: "3.6"
2019-09-24 06:04:44 +00:00
addons:
apt:
update: true
packages:
- patchelf
2020-07-31 08:17:36 +00:00
before_install:
- git submodule update --init -- extlib/mimalloc
2019-09-23 02:30:20 +00:00
install: &python-install
2019-09-23 05:28:43 +00:00
- python3 -m pip install -r cython/requirements.txt
2019-09-23 02:30:20 +00:00
script: &python-script
- cd cython && python3 setup.py test && cd -
2019-09-23 13:24:08 +00:00
before_deploy: cd cython
2019-09-24 06:04:44 +00:00
deploy:
- provider: pypi
user: $TWINE_USERNAME
password: $TWINE_PASSWORD
skip_cleanup: true
skip_existing: true
distributions: sdist
on:
repo: KmolYuan/solvespace
tags: true
2019-09-23 02:30:20 +00:00
- <<: *linux
python: "3.7"
- <<: *linux
2019-10-26 15:29:25 +00:00
python: "3.8"
2019-09-23 02:30:20 +00:00
- &osx
2019-11-27 06:09:27 +00:00
stage: deploy
2019-09-23 02:30:20 +00:00
os: osx
osx_image: xcode10
language: generic
env: PYTHON=3.6.0
before_install:
2020-07-31 08:17:36 +00:00
- git submodule update --init -- extlib/mimalloc
2019-09-23 02:30:20 +00:00
- brew update
2019-11-27 06:27:17 +00:00
- brew upgrade pyenv || true
2019-09-23 02:30:20 +00:00
- export PATH="/Users/travis/.pyenv/shims:${PATH}"
- pyenv install ${PYTHON}
- pyenv global ${PYTHON}
- python3 -m pip install pip -U
- python3 --version
- python3 -m pip --version
install: *python-install
script: *python-script
after_success:
# PyPI deployment
2019-09-24 06:04:44 +00:00
- if [[ "$TRAVIS_REPO_SLUG" == "KmolYuan/solvespace" && -n "$TRAVIS_TAG" ]]; then
2020-10-05 06:29:02 +00:00
python3 -m pip install wheel twine;
2019-09-23 05:28:43 +00:00
cd cython;
2019-09-24 06:04:44 +00:00
python3 setup.py bdist_wheel;
2019-09-23 13:24:08 +00:00
python3 -m twine upload dist/*.whl --skip-existing;
2019-09-23 02:30:20 +00:00
fi
- <<: *osx
env: PYTHON=3.7.0
- <<: *osx
2019-10-26 15:29:25 +00:00
env: PYTHON=3.8.0
2019-09-23 02:30:20 +00:00
before_cache:
- rm -rf $HOME/.cache/pip/log
cache:
directories:
- $HOME/.cache/pip