forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 loc) · 1.38 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
44
45
46
47
48
49
50
# 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
sudo: required
# Travis cannot find the binary for Ruby 2.3, so we specifically choose 2.3.1
# instead of using the .ruby-version file
rvm:
- 2.3.1
before_install:
- gem update --system
- wget https://github.com/nats-io/gnatsd/releases/download/v0.9.4/gnatsd-v0.9.4-linux-amd64.zip -O /tmp/gnatsd.zip
- unzip /tmp/gnatsd.zip
- export PATH=$PATH:$PWD/gnatsd-v0.9.4-linux-amd64
before_script:
- bundle exec rake db:create
- DB=mysql bundle exec rake parallel:create
- DB=postgres bundle exec rake parallel:create
script:
- bundle exec rake $TASKS
after_script:
- codeclimate-test-reporter
services:
- mysql
- postgresql
addons:
code_climate:
repo_token: 870bc78f6d6257a97e7a2150c787294062775852f2608e132226d0d2a936bd05
env:
global:
- secure: "ikEVVNPGAX1NqgBPXdjxcPJ3ihO9TyTtaN4iX3d2Wv0GdlSKgRqtCXrWuttVfYGqSoHHWwvCR3qum7N44akLsntrkcIQXGu6CsTsvqDC+vAKHtC31TVmuTEXZyIYA7455+B+a8nMsrO5LjX1ylucV1ZhGLzA84lMRQYkr6PklK0=" # CODECLIMATE_REPO_TOKEN
matrix:
- COVERAGE=true DB=postgres TASKS=spec:all
- DB=mysql TASKS=spec:all
- TASKS=rubocop