humhub/.travis/setup-humhub.sh
Daniel Kesselberg 2e7b0eabac 👷 chmod +x
2018-08-08 20:28:45 +02:00

16 lines
477 B
Bash
Executable File

#!/usr/bin/env sh
# -e = exit when one command returns != 0, -v print each command before executing
set -ev
composer install --prefer-dist --no-interaction
npm install
grunt build-assets
cd ${TRAVIS_BUILD_DIR}/protected/humhub/tests
mysql -e 'CREATE DATABASE humhub_test CHARACTER SET utf8 COLLATE utf8_general_ci;'
php codeception/bin/yii migrate/up --includeModuleMigrations=1 --interactive=0
php codeception/bin/yii installer/auto
php codeception/bin/yii search/rebuild