-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
executable file
·47 lines (43 loc) · 1.96 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
language:
- objective-c
- c++
compiler:
- clang
sudo: false
os: osx
osx_image: xcode7.3
script:
- mkdir build
- cd build
- cmake -G Xcode ..
- cmake --build . --config Release
- cd ..
- PACKAGE_NAME=`echo $TRAVIS_REPO_SLUG | sed 's/.*\///g'`
- PACKAGE_REV=`echo $TRAVIS_COMMIT | sed -e 's/^[[:alnum:]]\{6\}/&-/g' | sed 's/-.*//'`
- mkdir $PACKAGE_NAME
- if [ -e *.json ]; then cp *.json $PACKAGE_NAME; fi
- if [ -e *.md ]; then cp *.json $PACKAGE_NAME; fi
- if [ -e *.png ]; then cp *.json $PACKAGE_NAME; fi
- if [ -d docs ]; then cp -r docs $PACKAGE_NAME; fi
- if [ -d externals ]; then cp -r externals $PACKAGE_NAME; fi
- if [ -d extras ]; then cp -r extras $PACKAGE_NAME; fi
- if [ -d help ]; then cp -r help $PACKAGE_NAME; fi
- if [ -d init ]; then cp -r init $PACKAGE_NAME; fi
- if [ -d javascript ]; then cp -r javascript $PACKAGE_NAME; fi
- if [ -d media ]; then cp -r media $PACKAGE_NAME; fi
- if [ -d misc ]; then cp -r misc $PACKAGE_NAME; fi
- if [ -d patchers ]; then cp -r help $PACKAGE_NAME; fi
- mkdir dist
- zip -r dist/$PACKAGE_NAME-$PACKAGE_REV.zip $PACKAGE_NAME
deploy:
provider: s3
access_key_id: AKIAIWE3SI2TMXC5AJBA
secret_access_key:
secure: wQAmebCgHvllRBx9Qf1k1aA0m+fcA+Kpmh/U1YKjMVALQkQd9fxC+hCo/BivmX9V2UghARXTstJLlpgqCro/x5ZvF3yrO1T4DWp3/QYEMeqPT6Oc4FXZM2M0VyEcHA16SsgKS9iZus+33u7WIQNszA418Z7doZyaShdYIALp1qSjWBATjoHKmMX7ObJYf3JETANilriJ5D/aVgKYBKt1Zi0HeM5xL/Zgdop+yHmeoAQwtqbFNCE0lpDVTsukVTuS4/I9CGga4Efv6AHKfZEhppWXbm4U+MnBKCWBdJqIlie5JgdJRnN5yVtY+oNGwNpvaSypR1v9KC+2vK4HCA7BMYX3oLQQHZK/IfrUNECSkKP653nVrvTSAkhM8vHRUl+M1GNVXBDn8dWk/FZ9xe06QY1Oqt9C/eK+BCHPdC6XFKeVc27QpawPaDW+DKnLqsIUumew95BcTAOz6JeaZ8tAkXjeXyr10feLiWwhNdw9KJJ+LJjwHyc07DMTELRFZ6NIDjE17rc58mTR0h078p9zu4vXcmmR8HVmJRGiAvZ9yG4YM3le1ziTmKRD3zH4BpLhYVkYF6A2Tx3aYt3s5MitlrAzvEHZRXw4vfoLfEGti40SqHOxoETT1/9VCv7zhkMr1xnDPGIgcRULByxxVwzZnmlTIi2BVVC0QuSCto4CRy8=
bucket: cycling74-ci
skip_cleanup: true
local-dir: dist
upload-dir: max-devkit
acl: public_read
on:
repo: Cycling74/max-devkit