-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
69 lines (60 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
language: cpp
branches:
only:
- master
git:
depth: 1
sudo: required
dist: xenial
install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install ccache; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
- bash ci-scripts/$TRAVIS_OS_NAME/otx-install.sh
script:
- bash ci-scripts/$TRAVIS_OS_NAME/otx-buildffmpeg.sh
- bash ci-scripts/$TRAVIS_OS_NAME/otx-buildopencv.sh
- bash ci-scripts/$TRAVIS_OS_NAME/otx-build.sh
matrix:
include:
#- os: linux
# compiler: gcc
# cache: ccache
- os: linux
compiler: clang
cache:
directories:
- $HOME/build/manongjohn/OTX/thirdparty/openh264
- $HOME/build/manongjohn/OTX/thirdparty/ffmpeg
- $HOME/build/manongjohn/OTX/thirdparty/opencv
- os: osx
osx_image: xcode10.1
cache:
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
- $HOME/build/manongjohn/OTX/thirdparty/ffmpeg
- $HOME/build/manongjohn/OTX/thirdparty/opencv
before_cache:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
# Credit https://discourse.brew.sh/t/best-practice-for-homebrew-on-travis-brew-update-is-5min-to-build-time/5215/9
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".*\.git.*" -delete; fi
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "$GITNAME"
- git config --local user.email "$GITEMAIL"
- export TRAVIS_TAG="OTX-"$(date +'%Y-%m-%d')
- git tag -f $TRAVIS_TAG
- bash ci-scripts/$TRAVIS_OS_NAME/otx-buildpkg.sh
deploy:
provider: releases
api_key:
secure: "UdU4krTpLqJC1nDYbGEKYfi5cRF877J60wS5UGilpqK2yI4PgW+GUVHE9IKwiTeoh6hF1gMovh6HdCawbjvSq++XEqabL6ax8zrX80YqAERJXFgQQruFGR0wHEgnVnkvd6kPo9ZuGQhVa4bHZ8+7pjtadr4noowNkY7nrtOnMfdRnNSfLbkL5XG0AABshPDVXaAY5/TWIhgyx37EyLvg6rxSLLkdiXbGvN0WSqqqhCAAWgxeGkD+GoiHz2CUAQ0Cj6EEeHoqSFKjBoFSKvYdDDjx2qc7uoJKvZQAHyv3O6P8KI/Ok3pmcGs6v1rIJlrnDMkdUNpdiNjyI3aqZSoE+yxyBV8iFRnDWQtq5R4JG4nE2XSI9vfRDfSaQBKLGgP6n3WFyOswEbKSRAXpLQrXPlmlHEiFQhoy2V4EkHgwaZqUN6Vdu0A27HoGv2dNTXCbTDnRQmwUShz1mnXW1XTLPOC9DtWhpqtGezAL/qIFjRR2TzHBwtGbhX1C0+K29LXSA89IHDvk60STF03YrV4d5kzG/9pC/+xQx305+Crdq1DyUxUd3xmlo2MpTCbOuoa1dNrGfRD2p05EOqH6d2Bw0rf09MChWiQJTMJIfHX66CAXCSyNdZUK/aJu5c4mceybYGYoFW38l+Yf+pdIwEvNxxiXSWyzAWEKq9d6Dz6zIX8="
file_glob: true
file:
- toonz/build/OpenToonz-OTX-$TRAVIS_OS_NAME.*
- ci-scripts/README.txt
skip_cleanup: true
overwrite: true
on:
branch: master