-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy path.travis.yml
31 lines (31 loc) · 897 Bytes
/
.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
language: ruby
sudo: false
cache: bundler
rvm:
- 2.4.3
script:
- ./bin/rake spec:prepare
- echo $SCRIPT_CMD
- $SCRIPT_CMD
env:
matrix:
# travis-ci.org supports concurrency of 5, beyond that and they queue
- SCRIPT_CMD="bundle exec rspec --pattern spec/{models}{,/**}/*_spec.rb"
- SCRIPT_CMD="bundle exec rspec --pattern spec/{trackers}{,/**}/*_spec.rb"
- SCRIPT_CMD="bundle exec rspec --pattern spec/{controllers,features,helpers,mailers,routing}{,/**}/*_spec.rb"
- SCRIPT_CMD="./bin/rake jshint"
global:
- DATABASE_URL=postgres://postgres@localhost/bountysource_test
- GITLAB_PERSONAL_ACCESS_TOKEN=yk4sv48-tHyUJNBkcf56
addons:
postgresql: "9.4"
services:
- postgresql
- elasticsearch
before_script:
- psql -c 'create database bountysource_test;' -U postgres
- RAILS_ENV=test bundle exec rake db:migrate
- sleep 5
branches:
only:
- master