forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (51 loc) · 1.52 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
51
language: ruby
rvm:
- '2.2'
sudo: false
cache: bundler
env:
global:
- RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000
- RUBY_GC_HEAP_INIT_SLOTS=600000
- RUBY_GC_HEAP_GROWTH_FACTOR=1.25
matrix:
- TEST_SUITE=vmdb
- TEST_SUITE=automation
- TEST_SUITE=migrations
- TEST_SUITE=self_service SPA_UI=self_service
- TEST_SUITE=brakeman
- TEST_SUITE=replication
- GEM=pending
- TEST_SUITE=javascript
- GEM=manageiq_foreman
matrix:
fast_finish: true
addons:
postgresql: '9.4'
before_install:
- '[[ -z "$SPA_UI" ]] || nvm install 0.12'
- 'echo "gem: --no-ri --no-rdoc --no-document" > ~/.gemrc'
- travis_retry gem install bundler -v ">= 1.8.4"
- "[[ -f certs/v2_key.dev ]] && cp certs/v2_key.dev certs/v2_key"
- '[[ -z "$GEM" ]] || cd gems/$GEM'
- '[[ -n "$GEM" ]] || echo "1" > REGION'
- '[[ -n "$GEM" ]] || cp config/database.pg.yml config/database.yml'
- '[[ -n "$GEM" ]] || psql -c "CREATE USER root SUPERUSER PASSWORD ''smartvm'';" -U postgres'
- '[[ -n "$GEM" ]] || export BUNDLE_WITHOUT=development'
- export BUNDLE_GEMFILE=$PWD/Gemfile
before_script:
- '[[ -z "$SPA_UI" ]] || pushd spa_ui/$SPA_UI'
- '[[ -z "$SPA_UI" ]] || npm install bower gulp -g'
- '[[ -z "$SPA_UI" ]] || npm install'
- '[[ -z "$SPA_UI" ]] || npm version'
- '[[ -z "$SPA_UI" ]] || popd'
- '[[ -z "$TEST_SUITE" ]] || bundle exec rake test:$TEST_SUITE:setup'
script:
- bundle exec rake ${TEST_SUITE+test:$TEST_SUITE}
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/7af45001fe6b7a4039f2
on_success: change
on_failure: always
on_start: never