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
|
2020-11-02 22:10:16 +00:00
|
|
|
- name: clean
|
|
|
|
if: (NOT type IN (pull_request)) AND (branch = master)
|
2020-10-24 09:08:40 +00:00
|
|
|
- name: deploy
|
2020-11-18 09:53:14 +00:00
|
|
|
if: (NOT type IN (pull_request)) AND (branch = master OR tag IS present)
|
2019-11-25 17:28:42 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2020-11-02 22:10:16 +00:00
|
|
|
- stage: clean
|
|
|
|
name: Remove Github Release
|
|
|
|
os: linux
|
|
|
|
dist: bionic
|
|
|
|
script: .travis/remove-edge.sh
|
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"
|
2020-11-18 09:53:14 +00:00
|
|
|
before_deploy: source .travis/tag-edge.sh
|
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
|
2020-11-18 14:27:35 +00:00
|
|
|
on:
|
|
|
|
all_branches: true
|
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
|
2020-11-18 09:53:14 +00:00
|
|
|
before_deploy: source .travis/tag-edge.sh
|
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-11-18 14:27:35 +00:00
|
|
|
on:
|
|
|
|
all_branches: true
|
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
|
2020-11-18 09:53:14 +00:00
|
|
|
before_deploy: source .travis/tag-edge.sh
|
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-11-18 14:27:35 +00:00
|
|
|
on:
|
|
|
|
all_branches: true
|
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
|
2020-11-18 20:43:08 +00:00
|
|
|
dist: focal
|
2019-11-23 20:45:32 +00:00
|
|
|
addons:
|
2020-10-17 15:05:10 +00:00
|
|
|
snaps:
|
|
|
|
- name: snapcraft
|
|
|
|
confinement: classic
|
2020-11-18 20:43:08 +00:00
|
|
|
- name: lxd
|
|
|
|
install: .travis/install-snap.sh
|
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-11-18 20:43:08 +00:00
|
|
|
script: .travis/deploy-snap.sh edge
|
2020-10-21 19:13:49 +00:00
|
|
|
skip_cleanup: true
|
2020-01-22 14:37:14 +00:00
|
|
|
- provider: script
|
2020-11-18 20:43:08 +00:00
|
|
|
script: .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:
|
|
|
|
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
|
2020-11-18 20:43:08 +00:00
|
|
|
virt: vm
|