-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
45 lines (45 loc) · 2.11 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
language: objective-c
osx_image: xcode9
before_install:
- brew update >/dev/null
- brew list autoconf || brew install autoconf
- brew list automake || brew install automake
- brew list carthage || brew install carthage
- brew uninstall libtool && brew install libtool
- brew upgrade autoconf automake carthage libtool swiftlint || echo
- carthage bootstrap
- cd Frameworks/libmpdclient
- sed -i .bak 's/libtoolize/glibtoolize/g' autogen.sh
- ./autogen.sh --disable-documentation
- make
- cd ../..
- cd Frameworks/imeji
- make
- cd ../..
install:
- version_number=`git describe --tags --abbrev=0 2>/dev/null | sed s/^v//`
- if [[ $version_number == "" ]]; then version_number="0.0"; fi
- agvtool new-version -all $TRAVIS_BUILD_NUMBER
- agvtool new-marketing-version $version_number
- xcodebuild -target kmbmpdc -configuration Release
before_script:
- brew list swiftlint || brew install swiftlint
script:
- swiftlint
before_deploy:
- cd build/Release
- tar -cvzf kmbmpdc.tar.gz kmbmpdc.app
deploy:
- provider: releases
file: kmbmpdc.tar.gz
skip_cleanup: true
api_key:
secure: YnlTIxybWkKvkkvvEb+bmkzkDQPgGjvQE/3Ejt/vcGOANDD9HwX6pctHoOevKUUUxhT1QNacAVPf4jAKC3mgNbU47Wf62ppebPvWJjplaSPk5YiQzru5odoxcBA1F1TL3g6S9KEoZ8ZChRnRDBcKfQGU+7aAYt3eC3U4VJOWyO6967EVP4odYlzTQQks22eOC/Y0Mt/xDmpztvjizMzVFbTsFtURX8ZtjHb2LBqXIU6GwMAH3pwAtrH1iidqfEGDltwIB2nHKdLwzrSrAo0HCJ5XVkm1jB8aAX42K5FzlisP7GC0gXF6toQx6n12OtJzV1oY0dLHMAKPNSkUXdfAXP5bJN2pTxXm0aHH6k0+g6zvbQbzTTYunhFvl9B2dbCDS36IUFAbhVO2hUbp+lUJ/aDyrYj6Szy4XqoYDnM5ihYXmFBB5fot0lB6WH2Fzg7tsUfCzbZb9iOJ1044QThOPDRW/YrFywWO8mcZCQHza6PZFbeS0HWOMFOfJEI1CH58vmwjoCzRl6+Lf+r/7b2d+2co+Ov2FmbYJhH+AVZOwv0pMT0+UEGlSQg7sUa7gPr6mxI5lQyVh8GMUWqE15oJJRRUgipo5JDioMuSZyllsLPzjd0SDkt3ax7hnNKoZIfi5e5QQSKjirTVh2HSXZ6GIaxzHAZo5FZ7vYqBiFyH2+8=
on:
repo: arttuperala/kmbmpdc
tags: true
- provider: script
skip_cleanup: true
script: 'curl -H "Authorization: ${MEIDO_KEY}" -F "build_number=${TRAVIS_BUILD_NUMBER}" -F "commit=${TRAVIS_COMMIT}" -F "[email protected]" https://meido.perala.me/management/api/build'
on:
condition: $TRAVIS_TAG = ''