Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Krankerl on Travis #1022

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,21 @@ cache:
- "$HOME/.npm"

before_install:
- composer self-update
- composer --version
- php --info
- npm install -g npm@latest
- npm -v

- wget https://github.com/ChristophWurst/krankerl/releases/download/v0.9.3/krankerl_0.9.3_amd64.deb
- sudo dpkg -i krankerl_0.9.3_amd64.deb

# Set up DB
- 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

- composer self-update
- make install-composer-deps-dev
- make start-imap-docker
- make start-smtp-docker
- cd ..
Expand All @@ -62,12 +67,11 @@ before_script:
- php -f core/occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''

# Set up app
- php -f core/occ app:enable mail
# Enable app twice to check occ errors of registered commands
- php -f core/occ app:enable mail
- cd core/apps/mail
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm install -g npm@latest; fi"
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then make dev-setup; fi"
- krankerl up
- php -f ../../occ app:enable mail
# Enable app twice to check occ errors of registered commands
- php -f ../../occ app:enable mail

# Prepare IMAP test docker
- make add-imap-account
Expand Down