diff --git a/.travis.yml b/.travis.yml index eb1f2d94..51ce6a03 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,8 @@ sudo: false before_install: - gem install xcpretty install: - - tail -n +4 Sample\ iOS/Constants.h.example > Sample\ iOS/Constants.h - - echo \#define PUSHER_APP_ID @\"$(env | grep PUSHER_APP_ID | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h - - echo \#define PUSHER_API_KEY @\"$(env | grep PUSHER_API_KEY | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h - - echo \#define PUSHER_API_SECRET @\"$(env | grep PUSHER_API_SECRET | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h + - chmod u+x Scripts/travis-set-constants.sh + - Scripts/travis-set-constants.sh - bundle install env: matrix: diff --git a/Scripts/travis-set-constants.sh b/Scripts/travis-set-constants.sh new file mode 100644 index 00000000..7401ac24 --- /dev/null +++ b/Scripts/travis-set-constants.sh @@ -0,0 +1,5 @@ +#!/bin/bash +tail -n +4 Sample\ iOS/Constants.h.example > Sample\ iOS/Constants.h +echo \#define PUSHER_APP_ID @\"$(env | grep PUSHER_APP_ID | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h +echo \#define PUSHER_API_KEY @\"$(env | grep PUSHER_API_KEY | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h +echo \#define PUSHER_API_SECRET @\"$(env | grep PUSHER_API_SECRET | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h