Adjust CI config as matrix.

pull/493/head
KmolYuan 2019-09-20 16:36:21 +08:00
parent 813217bf00
commit c05df29b3b
2 changed files with 28 additions and 18 deletions

View File

@ -1,10 +1,15 @@
language: c
os:
- linux
- osx
matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: osx
osx_image: xcode8.2
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./.travis/install-debian.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./.travis/install-macos.sh; fi
@ -12,6 +17,7 @@ script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./.travis/build-debian.sh; fi
# the awk command is a workaround for https://github.com/travis-ci/travis-ci/issues/4704.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./.travis/build-macos.sh | awk '/.{0,32}/ {print $0}'; fi
deploy:
- provider: releases
api_key:

View File

@ -1,5 +1,7 @@
version: '{build}'
clone_depth: 1
for:
- image: Visual Studio 2013
before_build:
- git submodule update --init
- set tag=x%APPVEYOR_REPO_TAG_NAME%
@ -12,6 +14,7 @@ build_script:
- msbuild "build\test\solvespace-testsuite.vcxproj" /verbosity:minimal /property:Configuration=%BUILD_TYPE% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test_script:
- build\bin\%BUILD_TYPE%\solvespace-testsuite.exe
artifacts:
- path: build\bin\%BUILD_TYPE%\solvespace.exe
name: solvespace.exe
@ -19,6 +22,7 @@ artifacts:
name: solvespace-cli.exe
- path: build\bin\%BUILD_TYPE%\solvespace.pdb
name: solvespace.pdb
deploy:
- provider: GitHub
auth_token: