tunnelkit/ci/set-version.sh
Davide De Rosa 137ab17474 Run tests on Travis-CI
Rely on Travis for basic test stage. No manual xcodebuild script.

Had to inject a manual "pod repo update" though.

https://github.com/travis-ci/travis-ci/issues/6473#issuecomment-247777762

Extend build time to 20 minutes (OpenSSL takes a lot).
2019-05-27 19:21:12 +02:00

10 lines
290 B
Bash
Executable File

#!/bin/sh
PWD=`dirname $0`
VERSION=$1
BUILD=`git rev-list HEAD --count`
agvtool new-marketing-version $VERSION
agvtool new-version $BUILD
echo "Setting podspec version to $VERSION..."
sed -i "" -E 's@s\.version( +)= "[0-9]+\.[0-9]+\.[0-9]+"$@s.version\1= "'$VERSION'"@g' TunnelKit.podspec