.travis.yml
1.1 KB
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
language: ruby
rvm:
# for 2.2 support we need to upgrade the pg gem
- 2.1.6
cache: bundler
sudo: false
addons:
apt:
packages:
- po4a
- iso-codes
- tango-icon-theme
- pidgin-data
# for gem extensions
- libmagickwand-dev
- libpq-dev
- libreadline-dev
- libsqlite3-dev
- libxslt1-dev
before_install:
# FIXME: workaround while https://github.com/travis-ci/travis-ci/issues/4210 is open
- rm config/initializers/default_icon_theme.rb
# selenium support
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- mkdir -p tmp/pids log
- bundle check || bundle install
- script/noosfero-plugins disableall
- bundle exec rake makemo &>/dev/null
# database
- cp config/database.yml.travis config/database.yml
- psql -c 'create database myapp_test;' -U postgres
- bundle exec rake db:schema:load &>/dev/null
- bundle exec rake db:migrate &>/dev/null
env:
- TASK=test:units
- TASK=test:functionals
- TASK=test:integration
- TASK=cucumber
- TASK=selenium
- TASK=test:noosfero_plugins
script:
- bundle exec rake $TASK