Travis: Add explicit stage `Test`.
if: tag IS blank
+language: cpp
+dist: bionic
+sudo: true
+osx_image: xcode11
+
+jobs:
+ include:
+ - stage: Test
os:
- linux
- osx
@@ -10,28 +18,18 @@ compiler:
env:
- TINYSPLINE_FLOAT_PRECISION=OFF
- TINYSPLINE_FLOAT_PRECISION=ON
-
-language: cpp
-dist: bionic
-sudo: true
-osx_image: xcode11
-
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update && sudo apt-get install -y cmake; fi;
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then choco install cmake && choco install swig; fi;
-
script:
- if [ "$TRAVIS_OS_NAME" == "windows" ] && [ "$CC" == "gcc" ]; then cmake -G "Visual Studio 15 2017" -A Win32 .; fi;
- if [ "$TRAVIS_OS_NAME" == "windows" ] && [ "$CC" == "clang" ]; then cmake -G "Visual Studio 15 2017" -A x64 .; fi;
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then cmake .; fi;
- cmake --build .
- cmake --build . --target tests
-
-jobs:
- include:
- stage: Deploy Binaries (Linux Docker)
+ os: linux
services: docker
- install: skip
script:
- pushd tools/ci
- ./build.linux-x86_64.sh
@@ -58,8 +56,8 @@ jobs:
- stage: Deploy Binaries (Windows VM)
os: windows
- stage: Deploy Website
+ os: linux
service: docker
- install: skip
script:
- pushd tools/ci
- ./build.docs.sh
