Skip to content

Commit f35efb6

Browse files
authored
travis: Add cdsapi token (#85)
Token and url are expected to be configured as an environment variable in travis.
1 parent fe2f613 commit f35efb6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ install:
2424
# - "sh -e /etc/init.d/xvfb start"
2525
# - sleep 3 # give xvfb some time to start
2626

27+
before_script:
28+
- 'echo -ne "url: ${CDSAPI_URL}\nkey: ${CDSAPI_TOKEN}\n" > ~/.cdsapirc'
29+
2730
script:
28-
- py.test
31+
- py.test
2932

3033
# deploy new tags to pypi automatically
3134
deploy:

0 commit comments

Comments
 (0)