-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (66 loc) · 2.94 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
language:
- objective-c
- c++
compiler:
- clang
sudo: false
os: osx
matrix:
include:
- osx_image: xcode7.3
env: CONFIG=Debug
- osx_image: xcode7.3
env: CONFIG=Release
- osx_image: xcode8.3
env: CONFIG=Debug
- osx_image: xcode8.3
env: CONFIG=Release
- osx_image: xcode9
env: CONFIG=Debug
- osx_image: xcode9
env: CONFIG=Release
script:
- mkdir build
- cd build
- cmake -G Xcode ..
- cmake --build . --config ${CONFIG} | sed 's/-Wl,-.*//g'
- ctest -C ${CONFIG} . -V
- cd ..
- PACKAGE_NAME=`echo $TRAVIS_REPO_SLUG | sed 's/.*\///g'`
- PACKAGE_REV=`echo $TRAVIS_COMMIT | sed -e 's/^[[:alnum:]]\{7\}/&-/g' | sed 's/-.*//'`
- mkdir $PACKAGE_NAME
- if [ -e package-info.json ]; then cp package-info.json $PACKAGE_NAME; fi
- for f in *.md; do [ -e "$f" ] && cp "$f" $PACKAGE_NAME ; done
- if [ -e icon.png ]; then cp icon.png $PACKAGE_NAME; fi
- if [ -d code ]; then cp -r code $PACKAGE_NAME; fi
- if [ -d docs ]; then cp -r docs $PACKAGE_NAME; fi
- if [ -d examples ]; then cp -r examples $PACKAGE_NAME; fi
- if [ -d extensions ]; then cp -r extensions $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 java-classes ]; then cp -r java-classes $PACKAGE_NAME; fi
- if [ -d java-doc ]; then cp -r java-doc $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 patchers $PACKAGE_NAME; fi
- if [ -d support ]; then cp -r support $PACKAGE_NAME; fi
- if [ -e $PACKAGE_NAME/ReadMe-Public.md ]; then rm -f $PACKAGE_NAME/ReadMe.md; mv $PACKAGE_NAME/ReadMe-Public.md $PACKAGE_NAME/ReadMe.md; fi
- mkdir dist
- CONFIG_LOWERCASE=`echo $CONFIG | tr '[A-Z]' '[a-z]'`
- zip -r dist/$PACKAGE_NAME-mac-$PACKAGE_REV-$CONFIG_LOWERCASE.zip $PACKAGE_NAME
deploy:
provider: s3
access_key_id: AKIAIWE3SI2TMXC5AJBA
secret_access_key:
secure: "Ix69x8rU4Im2ACNX+288d7AO1g2UPvKOeFxpf3Z9XrpNq/60EUQObrTCAOFrWv05ZzNRZadqeBG3OgptY1w6JLgvFqrWjRX1YxwxFRS/Braa1PW1LNT1UIoSIIeH8uteqyYGe7ugGhBEvmMKAqHSpb1FeW3FYUIeMqHvSYFxb7Hf5mBWW/5kWWK67fdBZKay0qZmgkSvd2ypQYZE/wINthExOxaK9olHeluU6pkrQYNci0MhbRF0jtSbGN1Wg4/iyYkGTRPNBsNx3CBXvxv8hZtPz6HVpLp6YEsxFFdzVpcWBdjIj2wo6hk5yJaSJShr0I97/2WOQfAJg3qbqaWtf1ty629nrMBS7jgY2YMANunOmG5+eMiihAJWg3zrQ2PC/zo1b0IQdp6YYbynP1Y7LqM05wMf61agUAnr9hetBQceDxv47LoQHxdanVeEeDYHUR3SycOMAtqoR4buv5rSYcLUQ2SLLvBNcU5h9yWRRKwmklA9qPBYzWv/v/UlkfERfePuSUAyoiyoKQhyknDCpGChsZW4cETT23ANf08+FddK5WGx0e4Wmt9w5MCi9JoQtlHCsPilX2PKI15urQ9e/bRW4tjjp57K2Sh+K7wOUuDPPHlykJqHCaZN+ruZbnPXF/GHHkqVB+7JhuTGmE96SGLEDLj+6s+7/5yHOv2W5ag="
bucket: cycling74-ci
skip_cleanup: true
local-dir: dist
upload-dir: min-devkit
acl: public_read
on:
repo: Cycling74/min-devkit
all_branches: true