Skip to content

Commit

Permalink
Move constant setup to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kemp committed Jan 17, 2020
1 parent 8b20c30 commit 1c2f6b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions Scripts/travis-set-constants.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1c2f6b6

Please sign in to comment.