2020-10-20 12:14:49 +00:00
|
|
|
os: linux
|
|
|
|
dist: xenial
|
2015-03-29 05:15:41 +00:00
|
|
|
language: c
|
2019-11-25 17:28:42 +00:00
|
|
|
git:
|
|
|
|
submodules: false
|
2020-10-25 18:44:30 +00:00
|
|
|
if: tag != edge
|
2020-10-24 09:08:40 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- name: deploy
|
|
|
|
if: (NOT type IN (pull_request)) AND (branch = master)
|
2019-11-25 17:28:42 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2020-10-17 15:05:10 +00:00
|
|
|
- stage: test
|
2020-10-24 09:08:40 +00:00
|
|
|
name: macOS
|
2020-10-17 15:05:10 +00:00
|
|
|
os: osx
|
2020-10-20 07:39:26 +00:00
|
|
|
osx_image: xcode12.2
|
2020-10-20 12:14:49 +00:00
|
|
|
install: ".travis/install-macos.sh"
|
|
|
|
script: ".travis/build-macos.sh"
|
2020-10-17 15:05:10 +00:00
|
|
|
- stage: deploy
|
2020-10-24 09:08:40 +00:00
|
|
|
name: macOS
|
2020-10-17 15:05:10 +00:00
|
|
|
os: osx
|
2020-10-20 07:39:26 +00:00
|
|
|
osx_image: xcode12.2
|
2020-10-20 12:14:49 +00:00
|
|
|
install: ".travis/install-macos.sh"
|
2020-10-21 19:13:49 +00:00
|
|
|
script: ".travis/build-macos.sh release && .travis/sign-macos.sh"
|
|
|
|
before_deploy:
|
|
|
|
- git config --local user.name "solvespace-cd"
|
|
|
|
- git config --local user.email "no-reply@solvespace.com"
|
|
|
|
- export TRAVIS_TAG=${TRAVIS_TAG:-edge}
|
2020-10-25 20:00:40 +00:00
|
|
|
- git tag --force $TRAVIS_TAG
|
2020-10-17 15:05:10 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
2020-10-21 19:13:49 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
prerelease: true
|
|
|
|
overwrite: true
|
2020-10-24 09:08:40 +00:00
|
|
|
edge: true
|
2020-10-21 19:13:49 +00:00
|
|
|
name: ${TRAVIS_TAG:-edge}
|
2020-10-24 09:08:40 +00:00
|
|
|
release_notes: $TRAVIS_COMMIT_MESSAGE
|
2020-10-17 15:05:10 +00:00
|
|
|
file: build/bin/SolveSpace.dmg
|
2019-11-25 17:28:42 +00:00
|
|
|
- stage: test
|
2020-10-24 09:08:40 +00:00
|
|
|
name: "Ubuntu"
|
2019-11-25 17:28:42 +00:00
|
|
|
os: linux
|
|
|
|
dist: bionic
|
2020-10-24 09:08:40 +00:00
|
|
|
install: .travis/install-ubuntu.sh
|
|
|
|
script: .travis/build-ubuntu.sh
|
2020-10-16 19:11:42 +00:00
|
|
|
- stage: test
|
2020-10-24 09:08:40 +00:00
|
|
|
name: "Windows"
|
2020-10-16 19:11:42 +00:00
|
|
|
os: windows
|
2020-10-20 12:14:49 +00:00
|
|
|
install: .travis/install-windows.sh
|
|
|
|
script: .travis/build-windows.sh
|
2020-10-21 19:13:49 +00:00
|
|
|
- stage: deploy
|
2020-10-24 09:08:40 +00:00
|
|
|
name: "Windows"
|
2020-10-21 19:13:49 +00:00
|
|
|
os: windows
|
|
|
|
install: .travis/install-windows.sh
|
|
|
|
script: .travis/build-windows.sh release
|
|
|
|
before_deploy:
|
|
|
|
- git config --local user.name "solvespace-cd"
|
|
|
|
- git config --local user.email "no-reply@solvespace.com"
|
|
|
|
- export TRAVIS_TAG=${TRAVIS_TAG:-edge}
|
2020-10-25 20:00:40 +00:00
|
|
|
- git tag --force $TRAVIS_TAG
|
2020-10-21 19:13:49 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
skip_cleanup: true
|
|
|
|
prerelease: true
|
|
|
|
overwrite: true
|
2020-10-24 09:08:40 +00:00
|
|
|
edge: true
|
2020-10-21 19:13:49 +00:00
|
|
|
name: ${TRAVIS_TAG:-edge}
|
2020-10-24 09:08:40 +00:00
|
|
|
release_notes: $TRAVIS_COMMIT_MESSAGE
|
2020-10-21 19:13:49 +00:00
|
|
|
file: build/bin/RelWithDebInfo/solvespace.exe
|
2020-10-24 09:08:40 +00:00
|
|
|
- stage: deploy
|
|
|
|
name: "Windows with OpenMP"
|
|
|
|
os: windows
|
|
|
|
install: .travis/install-windows.sh
|
|
|
|
script: .travis/build-windows.sh release openmp
|
|
|
|
before_deploy:
|
|
|
|
- git config --local user.name "solvespace-cd"
|
|
|
|
- git config --local user.email "no-reply@solvespace.com"
|
|
|
|
- export TRAVIS_TAG=${TRAVIS_TAG:-edge}
|
2020-10-25 20:00:40 +00:00
|
|
|
- git tag --force $TRAVIS_TAG
|
2020-10-24 09:08:40 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
skip_cleanup: true
|
|
|
|
prerelease: true
|
|
|
|
overwrite: true
|
|
|
|
edge: true
|
|
|
|
name: ${TRAVIS_TAG:-edge}
|
|
|
|
release_notes: $TRAVIS_COMMIT_MESSAGE
|
|
|
|
file: build/bin/RelWithDebInfo/solvespace-openmp.exe
|
2020-02-08 14:42:01 +00:00
|
|
|
- &deploy-snap
|
|
|
|
stage: deploy
|
|
|
|
name: Snap amd64
|
2019-11-23 20:45:32 +00:00
|
|
|
os: linux
|
2020-02-08 14:42:01 +00:00
|
|
|
arch: amd64
|
2019-11-23 20:45:32 +00:00
|
|
|
dist: bionic
|
|
|
|
addons:
|
2020-10-17 15:05:10 +00:00
|
|
|
snaps:
|
|
|
|
- name: snapcraft
|
|
|
|
confinement: classic
|
2020-10-20 12:14:49 +00:00
|
|
|
script: .travis/build-snap.sh
|
2019-11-23 20:45:32 +00:00
|
|
|
deploy:
|
2020-01-22 14:37:14 +00:00
|
|
|
- provider: script
|
2020-10-20 12:14:49 +00:00
|
|
|
script: sudo .travis/deploy-snap.sh edge
|
2020-10-21 19:13:49 +00:00
|
|
|
skip_cleanup: true
|
2019-11-23 20:45:32 +00:00
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
tags: false
|
2020-01-22 14:37:14 +00:00
|
|
|
- provider: script
|
2020-10-20 12:14:49 +00:00
|
|
|
script: sudo .travis/deploy-snap.sh edge,beta
|
2020-10-21 19:13:49 +00:00
|
|
|
skip_cleanup: true
|
2019-11-23 20:45:32 +00:00
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
tags: true
|
2020-02-08 14:42:01 +00:00
|
|
|
- <<: *deploy-snap
|
|
|
|
name: Snap arm64
|
2020-10-24 09:08:40 +00:00
|
|
|
arch: arm64-graviton2
|
|
|
|
group: edge
|
|
|
|
virt: lxd
|