1
0
mirror of https://github.com/humhub/humhub.git synced 2025-04-24 09:13:05 +02:00

Trigger calendar from humhub core

This commit is contained in:
Daniel Kesselberg 2018-08-24 16:19:30 +02:00
parent 341593b351
commit 7f087c1bf9
3 changed files with 26 additions and 17 deletions

@ -1,46 +1,43 @@
language: php
sudo: required
services:
- mysql
addons:
chrome: stable
git:
depth: 3
php:
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
- "$HOME/.composer/cache"
install:
- .travis/install-dependencies.sh
- .travis/setup-humhub.sh
- ".travis/install-dependencies.sh"
- ".travis/setup-humhub.sh"
before_script:
- $HOME/chromedriver --url-base=/wd/hub &
- "$HOME/chromedriver --url-base=/wd/hub &"
- php --server 127.0.0.1:8080 --docroot ${TRAVIS_BUILD_DIR} &>/dev/null &
- sleep 5
- curl --fail --head http://127.0.0.1:8080/index-test.php
script:
- cd protected/humhub/tests
- php ../../vendor/bin/codecept build
- php ../../vendor/bin/codecept run --env travis
after_failure:
- cd ../../
- find humhub/ -type d -name "_output" -exec zip -r --exclude="*.gitignore" failure.zip {} +
- find humhub/ -type d -name "_output" -exec zip -r --exclude="*.gitignore" failure.zip
{} +
- zip -ur failure.zip runtime/logs
- curl --upload-file ./failure.zip https://transfer.sh/humhub-travis-${TRAVIS_JOB_NUMBER}.zip
- rm failure.zip
- rm failure.zip
after_success:
- cd ../../../
- ".travis/trigger-modules.sh"
env:
global:
secure: EGSE10Ya3jf7+CVwOo2L2iTySqpCKN64VpfeXKnmwy/gPzqfGq7p+Rjc5w7E0AGQgRCUmuw6QB+oyg32qlutW8ZzS7JHtnJTWOR8kkzrkpFohDVCFNOBofn4ckd1h64MWcLoF1otNa2GQAZBT/sgdE7HxmEnbCdqESZPEGQ/Q3I=

@ -10,7 +10,7 @@ curl -s -L -o chromedriver_linux64.zip https://chromedriver.storage.googleapis.c
# Install node
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs curl
sudo apt-get install -y nodejs
# Update npm
npm install -g npm@latest

12
.travis/trigger-modules.sh Executable file

@ -0,0 +1,12 @@
#!/usr/bin/env sh
# -e = exit when one command returns != 0, -v print each command before executing
set -ev
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token ${AUTH_TOKEN}" \
-d "{\"request\": {\"branch\": \"master\"}" \
https://api.travis-ci.com/repo/humhub%2Fhumhub-modules-calendar/requests