Skip to content

Commit

Permalink
updated encrpyted travis creds
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Lewis committed Nov 13, 2013
1 parent 0ae8ffc commit 15d74ae
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 13 deletions.
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foursquare
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.3
21 changes: 10 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
language: python
python:
- '2.6'
- '2.7'

- '2.6'
- '2.7'
install:
- pip install coverage --use-mirrors
- pip install . --use-mirrors

- pip install coverage --use-mirrors
- pip install . --use-mirrors
script:
- nosetests --with-coverage --cover-package=foursquare

- nosetests --with-coverage --cover-package=foursquare
env:
- secure: xkX+X1HcB2P0lbVYXT81NQBtuc/pyxBpMIqsZg+2KZM3GJBlX2/UJ5EXBWMS4WUdH63no1CQ7+MtSxELT+xsEMEUsR2+jjuW8qWAhd6dWCd5tmuw3nf4f1sALWtg7k4UVLu4jvpKgSM6eAoSp5P6J4pDtAlO64vBymyPjRTnQwQ=
- secure: cXsyf6Hd65bZaB2mszO2s30FtX/C7QB36rau79Znuwcbjcb0ED18qH/s5pqIsCvOkGO+3MQPILVPkAtWO7fExtWVxhxoTvftevdE6Bbt+Hc3GFgYBoPAuEE2nKlnsVeZgBFYK5/ilsLKlI8k0uTjguWhSfRasO62hJcWTvyRhCQ=
- secure: wSDqbCUqxXL09SdSQTaGGxowyU05NGlk37qhvoSScizQfSBfuDDYcKG3FHWPE3UiOFUAdOBnXcy5tiUxpWhp4tmRinRTOmeV68yDMDBLkeD/TWPgP9tD4RMH7/Hs14MwUaga+e7ItLSaL5+TQVwUeuWdZNcZkSyuBm0EbgZ/ef4=
global:
- secure: HNjTCjx6ylQ8E6w7gf//e73+928XQzgh6fRXRtZJYFyJ84BHl4o+Sghu05efbAeQKaE37dGareAnDnjwnsSQqHTiKhafvLW7QPMv89iddcxkt4gUAoa59mdiypakNSEF0d7rMS7cySKh8Sf2K94/YMR+seCyuGdE4s3VcfLMozI=
- secure: mzaInTqqFWnz8dRhLytEc6iOSG+7NqIdAg8gtGZ9Q8pZGlA8iSR+zeocDyf/xxLiOpRsq3mE1Dbm7cgbLkOkkPeZTH0CgcnZEhLfQjZkptduLwPm0LsoNy0jE+ryvp/54mvNDVE7ak91gDxbdMMx5fXEyawOgRwV+WWXSNHAMdg=
- secure: u+HSIASfzcTNyCAKNNFyqpOAw+JYGwU3E49hGSuPdgboaU/SKQUURgvc0t0maYCDxvVmZzcfRL2RUuaiBB0H/VJ8sFP2gRYBxnmXIgrMC2/yry5ADdoKwz7QYr3DdKMzZZmFdyEe1KN6gHu5cLEtOkrv+HOPZuO5Puk0WqSw+Hk=
- secure: X+kJa67+GeVZ8yLMA5xv5UNO1L9/fcGNaNj5q2AFuwcfocYFo0sule0bG+ZX/YHHY1aR5cakp09ZOokFqyBHGLouLIuy2aAPNB2ugSXfo3npNUMcY/+KKiWO6NLOQxLCTK10tXndVRWEM3yUFeclyowuz3s2X2F1IZBcE1fc5O0=
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'http://rubygems.org'

group :build do
gem 'travis'
gem 'travis-lint'
end
63 changes: 63 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
GEM
remote: http://rubygems.org/
specs:
addressable (2.3.5)
backports (3.3.5)
coderay (1.1.0)
ethon (0.6.1)
ffi (>= 1.3.0)
mime-types (~> 1.18)
faraday (0.8.8)
multipart-post (~> 1.2.0)
faraday_middleware (0.9.0)
faraday (>= 0.7.4, < 0.9)
ffi (1.9.3)
gh (0.13.0)
addressable
backports
faraday (~> 0.8)
multi_json (~> 1.0)
net-http-persistent (>= 2.7)
net-http-pipeline
hashr (0.0.22)
highline (1.6.20)
launchy (2.3.0)
addressable (~> 2.3)
method_source (0.8.2)
mime-types (1.25)
multi_json (1.8.2)
multipart-post (1.2.0)
net-http-persistent (2.9)
net-http-pipeline (1.0.1)
netrc (0.7.7)
pry (0.9.12.3)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
pusher-client (0.4.0)
websocket (~> 1.0.0)
slop (3.4.6)
travis (1.6.2)
addressable (~> 2.3)
backports
faraday (~> 0.8.7)
faraday_middleware (~> 0.9)
gh (~> 0.13)
highline (~> 1.6)
launchy (~> 2.1)
netrc (~> 0.7)
pry (~> 0.9)
pusher-client (~> 0.4)
typhoeus (~> 0.6)
travis-lint (1.7.0)
hashr (~> 0.0.22)
typhoeus (0.6.6)
ethon (~> 0.6.1)
websocket (1.0.7)

PLATFORMS
ruby

DEPENDENCIES
travis
travis-lint
8 changes: 6 additions & 2 deletions foursquare/tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,9 @@ def test_update_name(self):
def test_update_photo(self):
curr_dir = os.path.dirname(os.path.realpath(__file__))
profile_photo = os.path.join(curr_dir, 'profile_photo.jpg')
response = self.api.users.update(photo_data=open(profile_photo, 'r'))
assert 'user' in response
# Fail gracefully if we don't have a profile photo on disk
if os.path.isfile(profile_photo):
response = self.api.users.update(photo_data=open(profile_photo, 'r'))
assert 'user' in response
else:
print u"Put a 'profile_photo.jpg' file in the tests/ directory to enable this test."

0 comments on commit 15d74ae

Please sign in to comment.