From fda7e0318f827b673cb2edefc25ef87922c8c5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 16:36:07 +0200 Subject: [PATCH 1/7] add unit tests to travis --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1544d3bba..294cd5386 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,4 +24,7 @@ script: - rake db:create - rake db:migrate - rake db:seed +- rake test:units +- rake test:controllers +- rake db:drop - rake assets:precompile From 5932491a24e6ec7070698bdf3ae79d2625269d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 16:37:42 +0200 Subject: [PATCH 2/7] add unit tests to travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 294cd5386..5d56f12ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,5 +26,5 @@ script: - rake db:seed - rake test:units - rake test:controllers -- rake db:drop - rake assets:precompile +- rake db:drop From 2323b614430fde0b9516dad89da0f8ea79419004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 16:45:39 +0200 Subject: [PATCH 3/7] travis - switch to dev environment --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5d56f12ea..bc75bf1ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,8 @@ before_install: - 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 - 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';" - - export RAILS_ENV=production + - mysql -u root -e "GRANT ALL PRIVILEGES ON zammad*.* TO 'some_user'@'localhost';" + - export RAILS_ENV=development - cp config/database.yml.dist config/database.yml install: - bundle install --without test development postgres From b7737158f787f624a7634c3a754dd24f6a186636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 16:48:33 +0200 Subject: [PATCH 4/7] travis - change bundle --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bc75bf1ad..c175e68b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ before_install: - export RAILS_ENV=development - cp config/database.yml.dist config/database.yml install: -- bundle install --without test development postgres +- bundle install --without postgres script: - rake db:create - rake db:migrate From c3c514fe680b2f5ebceae36b133d99a4967ecf32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 16:49:34 +0200 Subject: [PATCH 5/7] travis - fix mysql priv --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c175e68b7..f9860d9f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: - 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 - mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';" - - mysql -u root -e "GRANT ALL PRIVILEGES ON zammad*.* TO 'some_user'@'localhost';" + - mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';" - export RAILS_ENV=development - cp config/database.yml.dist config/database.yml install: From 680fa7610c988754083e45cc71078b2659abd229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 17:14:34 +0200 Subject: [PATCH 6/7] travis - add postfix --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f9860d9f3..6573a0b8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ rvm: - 2.3.1 before_install: - 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 "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';" - export RAILS_ENV=development From 68cf6210475ec834d2042a5135d565c2c819da65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 24 Oct 2016 17:37:25 +0200 Subject: [PATCH 7/7] travis - disable mail notifications --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6573a0b8d..316927f57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ dist: trusty sudo: required +notifications: + email: false addons: apt: packages: