forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 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
# The secure URLs below are generated using the following command:
#
# $> gem install travis
# $> travis -v
# $> travis login
# $> travis encrypt --org FOO="blah://travis:[email protected]:1521/some_db" -r cloudfoundry/cloud_controller_ng
language: ruby
bundler_args: --deployment --without development
cache: bundler
rvm:
- 1.9.3-p547
before_script:
- bundle exec rake db:create
- gem install travis-artifacts
script:
- bundle exec rake $TASKS
after_script: # and this only on success, fail the whole build if it fails
- "[ $TRAVIS_TEST_RESULT == 0 ] && travis-artifacts upload --path doc/api --target-path api_docs/$TRAVIS_BUILD_ID && echo https://s3-us-west-1.amazonaws.com/cc-travis-api-doc/api_docs/$TRAVIS_BUILD_ID/index.html"
env:
global:
# API Docs
- "ARTIFACTS_S3_BUCKET=cc-travis-api-doc"
- "ARTIFACTS_AWS_REGION=us-west-1"
- secure: "E3wLDMLQxIIVxpXA4IPV/pPf/AiHUlcJTvOa1o4Nm5o/c6TDrO/6dR0i183ahhjBzRWAE6no2YGjSGDY6ALZnkVc8DL6UGyAPwy1AMYBSptReOVmZBwbKYWiQOm89Crn7qSUo6tsEvp7CPckTbV9qA1SxGF/gxvvRGoKdYtDBIA=" # ARTIFACTS_AWS_ACCESS_KEY_ID
- secure: "C+wpbEL7q16vH/V2WmHnw6ZPmVMF74B5RLBYrz0F1WiXOPWh84PGlBjLaNB+/X8X1Aw3AUHaTOtUaf8Exb/FQjzL8bUxgwFRJUOztwfsg+aU1ddGc2MsL8oXamnjSkJZMvEONSHKUG3DpkGctI8sl2gitSwJe6vNQDEjf1xq5ro=" # ARTIFACTS_AWS_SECRET_ACCESS_KEY
matrix:
- DB=postgres TASKS='rubocop spec:outer'
- DB=postgres TASKS=spec:unit:fast
- DB=postgres TASKS=spec:unit:lib
- DB=postgres TASKS=spec:unit:controllers
- DB=mysql TASKS='rubocop spec:outer'
- DB=mysql TASKS=spec:unit:fast
- DB=mysql TASKS=spec:unit:lib
- DB=mysql TASKS=spec:unit:controllers