-
Notifications
You must be signed in to change notification settings - Fork 82
/
.travis.yml
148 lines (120 loc) · 5.02 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# OSX/Linux (https://github.com/travis-ci-tester/toolchain-table)
language:
- cpp
# Image with best disk space availability {
# * https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system
sudo:
- required
dist:
- trusty
# }
env:
global:
- secure: "VsEvjGdwEpr+MvCpvi6C0GuEV97NBpe4fR5Oni+9cbmv4HyKBMnQKqedVJFvWk70Yb/XUeFJ/hBaTX/q4tItegEJ4bNt2La365ng+T/vML8l1lY19VdRYrbEK9fuZq1ozS6DEDYtmWidufIX1mixYnL1Yyq2cchvs+T9wjclTAvInfMiLveCV4BJmdj8EMxS7QibYKSVpYkxBj4/pc6z0HxbPjgYnUREUbN67mZ1Bf9T/2PqQdeub3qWAG36kwsZ2BmzXUhiJ0XytCMVNGJ2sQbg47lt5aXNFtv5N79Z2GEqV+Yw0EaaQ2PLZOf7HKzFQTco8j5KbhVIoJr7cv9ST0gHQSHwZr+bINWn+frUHzYOO8nlu7nciDT5LCSZ9YRVIzzB1dTn7w82LZiBh1cr4OdhE5uDSHyEdtlkqKzVn4CpIgmPBXUhRjZPIn9hq7PQYc7wleO0ssqzQ/kYw9VSchhFDhPE/QBRkSbvD+eCPCOGP5cpAzpI5OvDa7if+0McIrMVmLx718Uf00MZ7r3FsJMDnAjJlnKog2Rn17Rhl7UCsvhxl7vtxsoSo9ohhvzBWIe0fT2gOsg8rSZ0R+s666DlhGIffyzWqqv8SfAQKo0sfcE9op/c3HF6NAKxHLuxAkAyJ2qFWKkJ017wpYhJx5cz6LHC3x24ahHNi2dqIJY="
matrix:
include:
# Linux {
- os: linux
env: >
TOOLCHAIN=libcxx-fpic-hid-sections
CONFIG=Release
INSTALL=--strip
TYPE=polly
# FIXME: https://github.com/travis-ci/travis-ci/issues/9976
# - os: linux
# env: >
# TOOLCHAIN=gcc-5-pic-hid-sections-lto
# CONFIG=Release
# INSTALL=--strip
# TYPE=polly
# FIXME: need automated fixer script to run before each pr
#- os: linux
# env: >
# TOOLCHAIN=clang-tidy-libcxx
# CONFIG=Release
# INSTALL=--strip
# TYPE=polly
- os: linux
env: >
TOOLCHAIN=android-ndk-r18b-api-24-arm64-v8a-clang-libcxx11
CONFIG=Release
INSTALL=--strip
MINIMAL=OFF
TYPE=polly
- os: linux
env: >
TOOLCHAIN=android-ndk-r18b-api-24-arm64-v8a-clang-libcxx11
CONFIG=Release
INSTALL=--strip
MINIMAL=ON
TYPE=polly
- os: linux
env: >
ANDROID_STUDIO_ARCH=arm64-v8a
TYPE=android-studio
- os: linux
env: >
ANDROID_STUDIO_ARCH=armeabi-v7a
TYPE=android-studio
# }
# OSX {
- os: osx
osx_image: xcode9.3
env: >
TOOLCHAIN=osx-10-13
CONFIG=Release
INSTALL=--install
TYPE=polly
- os: osx
osx_image: xcode9.3
env: >
TOOLCHAIN=ios-nocodesign-11-3-dep-9-3-arm64
CONFIG=MinSizeRel
INSTALL=--install
TYPE=polly
# - os: osx
# osx_image: xcode8.3
# env: >
# TOOLCHAIN=osx-10-12-sanitize-address-hid-sections
# CONFIG=Release
# INSTALL=--install
# TYPE=polly
- os: osx
env: >
TOOLCHAIN=android-ndk-r18b-api-24-arm64-v8a-clang-libcxx11
CONFIG=MinSizeRel
INSTALL=--strip
TYPE=polly
# }
# disable the default submodule logic to support local modification of .gitmodules paths
git:
submodules: false
# See https://docs.travis-ci.com/user/private-dependencies/#API-Token
# CI_USER_TOKEN is added to .travis.yml settings
install:
# (FIXME) - if [[ "`uname`" == "Linux" ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [[ "`uname`" == "Linux" ]]; then sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -; fi
- if [[ "`uname`" == "Linux" ]]; then sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main"; fi
- if [[ "`uname`" == "Linux" ]]; then sudo apt-get -y update; fi
- if [[ "`uname`" == "Linux" ]]; then travis_retry sudo apt-get install -y libc++-dev libc++abi-dev libclang-5.0-dev libclang-common-5.0-dev libclang1-5.0 clang-5.0; fi
- if [[ "`uname`" == "Linux" ]]; then travis_retry sudo apt-get install -y libgl1-mesa-dev; fi # For ogles_gpgpu (GL library)
# (FIXME) - if [[ "`uname`" == "Linux" ]]; then travis_retry sudo apt-get install -y g++-5; fi # GCC 5
- if [[ "`uname`" == "Linux" ]]; then travis_retry sudo apt-get install -y python3-pip; fi # pip3
- source bin/hunter_env.sh
script:
- bin/jenkins.sh
before_deploy:
- gem install mime-types -v 2.6.2 # workaround for https://github.com/travis-ci/travis-ci/issues/5145
- export FILE_TO_UPLOAD=$(ls _archives/drishti-*.tar.gz)
deploy:
provider: releases
api_key:
secure: "Ff1/kumLxjTf7ZND+yKJeZ8vS+jFCGPeXCFEIk3yZ8TiPxJmgmoMP56jWdR94WyAlqNroIvlAevSdtH/Lw7Qcu3MRcqFG64N7FBZz//UqpXZD4L12RcWDmtj8Jgk5t+Cty5nbuviYJ3sgk2Us4W0ykEE5Ot0E1M+oudWTuSDYihGlX7MEghyixxZCpO1uUYc16T8MHLus/NbBPONZsZ4UU3iUTojgqnhxc38gFmRSplk6FeFKL8JRZpZBXHgp/YdWTIpQWWvkQ1uRnk2l47n2pLTUPLyiIhG9o6WP9B5lGfvpiLGM/xUzmVYG09FZ6qM2R5oD+QHnQ+35oqhq/qTC+sg6yz1Lv4AXYQlhoS/yNne+w0E/N2Neh26oDEevPFQBltV25s6h7hZsjpGKNGNCDSXHEpV5Gn58C0E+dr6iTT20CbsT6zw/z1+n6z7OJlAuLLl0duKKsQ8pC3ngqHsn8OFmOYTtkAG6SU6mQZxMmJ5WlMwD85MlsEDIJwX/8dsW2aFSH5yPYiS0j6hbTQPD0lKYRr8czEzqPEd39A0yvwT81gQhcgoCDSui1jibd91paCFE9IpmV8YMPPV24GGlSKIqDWGbtacyuPXinQa+hW0bICqDfjh9nhRwBH9WqxjNBBZ09uX/8scke5pA3LcyfeXtmIAu4rHl7y8jU4B4WE="
file_glob: true
file: "${FILE_TO_UPLOAD}"
skip_cleanup: true
on:
tags: true
branches:
except:
- /^pr\..*/