forked from msteinbeck/tinyspline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
97 lines (92 loc) · 2.68 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
if: tag IS blank
os:
- linux
- osx
- windows
compiler:
- gcc
- clang
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; 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)
services: docker
install: skip
script:
- pushd tools/ci
- ./build.linux-x86_64.sh
- ./build.macosx-x86_64.sh
- ./bundle.sh
- popd
before_deploy:
- git tag -f snapshot
- git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- git push -f gh snapshot
- git remote remove gh
deploy:
- provider: releases
api-key: $GITHUB_TOKEN
skip_cleanup: true
file_glob: true
file: tools/ci/tinyspline/*
name: Snapshot build
prerelease: true
overwrite: true
target_commitish: $TRAVIS_COMMIT
on:
branch: master
- stage: Deploy Binaries (Windows VM)
os: windows
install:
- choco install cmake
- choco install swig
- choco install python3
- C:\\Python37\\python -m pip install -U pip setuptools
- C:\\Python37\\python -m pip install wheel
script:
- mkdir python3
- pushd python3
- cmake -G "Visual Studio 15 2017" -A x64 -DTINYSPLINE_ENABLE_PYTHON=True ..
- C:\\Python37\\python setup.py bdist_wheel
- popd
deploy:
- provider: releases
api-key: $GITHUB_TOKEN
skip_cleanup: true
file_glob: true
file: python3/dist/*
name: Snapshot build
prerelease: true
overwrite: true
target_commitish: $TRAVIS_COMMIT
on:
branch: master
- stage: Deploy Website
service: docker
install: skip
script:
- pushd tools/ci
- ./build.docs.sh
- popd
deploy:
- provider: pages
github_token: $GITHUB_TOKEN
skip_cleanup: true
local_dir: tools/ci/build.docs/html
on:
branch: master