forked from KhronosGroup/COLLADA2GLTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.67 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
language: cpp
compiler: g++
git:
submodules: false
cache:
- build/dependencies
- build/GLTF/dependencies
before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
addons:
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- cmake
- cmake-data
script: mkdir build && cd build && cmake -Dtest=ON .. && make && make test
after_success:
- if [ ! -z "$TRAVIS_TAG" ]; then
export RELEASE=`echo "$TRAVIS_TAG"| awk -F"-" '{print $1}'`;
export RELEASE_FILE=COLLADA2GLTF-$RELEASE-linux.zip;
find . -path ./CMakeFiles -prune -o -iname \*.a -o -perm /u+x | zip -@ -j $RELEASE_FILE;
fi;
deploy:
provider: releases
api-key:
secure: AUoIy2ukzHAWBPfXejuhYTu1fe08pjBtB+SY0YfG+TkMbiiL1EvbkEQlrhNkeOcBZoreKAVGPbHtpIL/t/NUXuo1qAmN47H6daxigAuWVE15lvvx/W+6SZN3eFGRCZ5UpRMs3Vg+4ZM4dtruAc7hy7cia3HBSO/Y/g0P65Mx0/+s6de2S01UmVWpTbgPcO8zovvdggxsjr0yZJaDd2UmlQj2tBRYOmS9PYZ0c/PRb9xNcoLZaPnPnu7OwbPiQQvS8LTckgWGui1kj9X36/mruW3TpgEkvH9itMkXPE5FvzlsPcvo5KvDImeSP6y8i+u/lqT57LpTe5SxhZr7nlyh0cvXQjFSqPrljkeVXYwTg6Gt/61Su1pKmv38MT8lQd/+EQpo614iEPMK5E/cXTgKeI3ZmMQI/9uMFZSMwDN6GOAlSmSxuXaI4OcMW5xtAbigyxTdsyk5+5vGmyOhTKvaGBH4E6Boaa8ZyAqCGE6Rfi6TgzbQoVue4AUULOGhLHXeXyCw9rKF9VwI867ZdXccbMvz3BD3CRFVJ/a0w2LgKNNyrA6eOE2hWloKFALkQBAiwuUV6S/rPeJq1msohpPXMlwdkRSj6qPWlMBFXWbLHPeADkTIf8Ysn7NxNJ+vpAbQWs4vs9kYVNoaEcNBtzIRtwk563aI1pXpKjDgzoFCtrk=
file: $RELEASE_FILE
skip_cleanup: true
on:
tags: true
overwrite: true
file: $RELEASE_FILE
skip_cleanup: true
on:
tags: true
overwrite: true