forked from expertiza/expertiza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.42 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
language: ruby
rvm:
- 1.9.3
branches:
only:
- master
- production
before_install:
- uname -a
- lsb_release -a
- sudo apt-get update
- sudo apt-get install git-core curl
- sudo apt-get --no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev
- sudo apt-get install libaspell-dev openjdk-6-jdk gcc libxml2 libxml2-dev libxslt1-dev mysql-server mysql-client
- sudo apt-get install libmysqlclient-dev
- sudo apt-get install graphviz
- unset RAILS_ENV
- rvm rubygems 1.8.23
- gem install debugger
- gem install raspell -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-head/
- bundle config build.raspell --with-opt-dir=
before_script:
- mysql -u root < db/grant_expertiza.sql
- cp config/database.example config/database.yml
- export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
- bundle install
- bundle exec rake db:migrate
- bundle exec rake db:test:prepare
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- "export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec cucumber -p travis"
notifications:
email:
recipients:
on_success: change
on_failure: change