forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
43 lines (34 loc) · 1.63 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# The secure URLs below are generated using the following command:
#
# $> gem install travis
# $> travis -v
# $> travis login
# $> travis encrypt --org ENV_VAR_TO_ENCRYPT_NAME=env_var_to_encrypt_value -r cloudfoundry/cloud_controller_ng
language: ruby
bundler_args: --deployment --without development
cache: bundler
rvm:
- 2.1.6
before_script:
- bundle exec rake db:create
- gem install travis-artifacts
script:
- bundle exec rake $TASKS
after_success:
- "[ $TRAVIS_BRANCH == 'master' -a $UPLOAD_DOCUMENTATION == 'true' ] && travis-artifacts upload --path doc/api --target-path $TRAVIS_BUILD_ID && echo https://s3-us-east-1.amazonaws.com/cc-api-docs/$TRAVIS_BUILD_ID/index.html"
services:
- mysql
- postgresql
env:
global:
# API Docs
- "ARTIFACTS_S3_BUCKET=cc-api-docs"
- "ARTIFACTS_AWS_REGION=us-east-1"
- secure: "ikEVVNPGAX1NqgBPXdjxcPJ3ihO9TyTtaN4iX3d2Wv0GdlSKgRqtCXrWuttVfYGqSoHHWwvCR3qum7N44akLsntrkcIQXGu6CsTsvqDC+vAKHtC31TVmuTEXZyIYA7455+B+a8nMsrO5LjX1ylucV1ZhGLzA84lMRQYkr6PklK0=" # CODECLIMATE_REPO_TOKEN
- secure: "QKt8dWFoORupYyQ6g4ak4KwKVVnQEn4VsLg73hr7zqGDOKFJy2gFCndqA8oYgAjTtRxzJ1CwcZpNSPV8IAkP45N0uX/lqDWRWhMg+6u92gdzvPw6iaKhpMpdeoUZfwWV4itMXEdWAj2lUNQQnYCAMh85ARzqXItwspFLfNsPKXE=" # ARTIFACTS_AWS_ACCESS_KEY_ID
- secure: "LWELpbmGKm0czPQJAW/DhmKBXiID+UZPWi5r9EFxdO9LnqOcu8qYtu5GZkWSUsaWeLZqrfpR9ZvBvr62wQzDF75BJYuWrEjIPPC/2pTQAIg/NCu04iw8JWhOKW1MNXG1F4NKLCFEs9W8irKc4fC/xvjwhhDA7VI77oLoKZmrLW0=" # ARTIFACTS_AWS_SECRET_ACCESS_KEY
matrix:
- COVERAGE=true DB=postgres TASKS=spec:all
- DB=mysql TASKS=spec:all
- DB=postgres TASKS=spec:api UPLOAD_DOCUMENTATION=true
- TASKS=rubocop