forked from expertiza/expertiza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.53 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
language: ruby
rvm:
- 1.9.3
branches:
only:
- master
- production
- rails4
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 nodejs
- sudo apt-get install npm
- unset RAILS_ENV
- rvm rubygems 1.8.23
- gem update bundler
- gem install raspell -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-head/
- bundle config build.raspell --with-opt-dir=
- npm install -g bower
- bower install
before_script:
- mysql -u root < db/grant_expertiza.sql
- cp config/database.yml.example config/database.yml
- cp config/secrets.yml.example config/secrets.yml
- export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
- bundle install
- bundle exec rake db:setup
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- "export DISPLAY=:99.0 && RUBYOPT=W0 bundle exec rake 2> /dev/null"
notifications:
email:
recipients:
on_success: change
on_failure: change