From 093fe1f02efab911c353f215d28c9bdabdc363ae Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 26 Mar 2016 20:59:58 +0100 Subject: speed up build by only installing db related tasks if db is actually used --- .travis.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 7b410b2f5..5c13aea8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,8 @@ before_install: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start - sudo apt-get update - - sudo apt-get -y install python3-setuptools firefox mariadb-server + - sudo apt-get -y install python3-setuptools + - if [[ "$DB" == 'mysql' ]]; apt-get -y install mariadb-server; fi - sudo easy_install3 requests ocdev - nvm install 5.6 - npm install -g npm@latest @@ -37,10 +38,10 @@ before_install: - mv news owncloud/apps/ before_script: - - createuser -U travis -s oc_autotest - - mysql -u root -e 'create database oc_autotest;' - - mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';" - - mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';" + - if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi + - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi + - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi + - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';"; fi # fill owncloud with default configs and enable news - cd owncloud - mkdir data @@ -69,3 +70,6 @@ deploy: on: repo: owncloud/news tags: true + +addons: + firefox: "latest" -- cgit v1.2.3