Merge pull request #287 from monotek/develop

chnaged travis environment to develop / added unittest
This commit is contained in:
André Bauer 2016-10-24 17:44:06 +02:00 committed by GitHub
commit f4fdcba8fc

View file

@ -1,5 +1,7 @@
dist: trusty dist: trusty
sudo: required sudo: required
notifications:
email: false
addons: addons:
apt: apt:
packages: packages:
@ -13,15 +15,18 @@ rvm:
- 2.3.1 - 2.3.1
before_install: before_install:
- sudo apt-get -qq update - sudo apt-get -qq update
- sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev - sudo apt-get install -y curl git-core patch build-essential bison zlib1g-dev libssl-dev libxml2-dev libxml2-dev sqlite3 libsqlite3-dev autotools-dev libxslt1-dev libyaml-0-2 autoconf automake libreadline6-dev libyaml-dev libtool libgmp-dev libgdbm-dev libncurses5-dev pkg-config libffi-dev libmysqlclient-dev postfix
- mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" - mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"
- mysql -u root -e "GRANT ALL PRIVILEGES ON zammad_prod.* TO 'some_user'@'localhost';" - mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';"
- export RAILS_ENV=production - export RAILS_ENV=development
- cp config/database.yml.dist config/database.yml - cp config/database.yml.dist config/database.yml
install: install:
- bundle install --without test development postgres - bundle install --without postgres
script: script:
- rake db:create - rake db:create
- rake db:migrate - rake db:migrate
- rake db:seed - rake db:seed
- rake test:units
- rake test:controllers
- rake assets:precompile - rake assets:precompile
- rake db:drop