Code: Select all
clone "phpbb-ext-acme-demo" from Github for the files listed below in step two.
git clone https://github.com/nickvergessen/phpbb-ext-acme-demo
- Go to Travis Accounts, Sync the list of repositories, Enable your extensions repository
- Copy the following files to your extension:
travis/prepare-phpbb.sh
.travis.yml
phpunit.xml.dist
- Edit .travis.yml
find:
- EXTNAME="acme/demo" # CHANGE name of the extension HERE
replace with:
- EXTNAME="yourvendor/yourextension"
Example:
- EXTNAME="phpbbmodders/holidayflare" - After that, include in your composer.json EPV as development dependency:
"require-dev": {
"phpbb/epv": "dev-master"
}, - Add the TravisCI badge to the README.md file:
[![Build Status](https://travis-ci.org/phpbbmodders/holiday_flare.png)](https://travis-ci.org/phpbbmodders/holiday_flare) - Install Composer (Run while in the repos folder)
curl -sS https://getcomposer.org/installer | php - Update your Composer dependencies for EPV (Run while in the repos folder)
php composer.phar update --dev - Add the vendor folder to your .gitignore file
Code: Select all
# Do not submit the VENDOR folder
vendor/* - Commit via CLI on Linux so that the third command here sticks. TortoiseGIT in windows won't be able to see the mode change one the file and Travis won't have the permissions needed to run prepare-phpbb.sh. This means any TravisCI enabled repo can't be altered via Windows.
git add .
git commit -m "Add TravisCI integration for EPV and TravisCI badge to README.md"
git update-index --chmod=+x travis/prepare-phpbb.sh
git push
Instructions got from this topic on phpbb.com [url=https://www.phpbb.com/community/viewtopic.php?f=461&t=2239116]Simple way to test your ext on TravisCI[/url] and cleaned up to be more step by step.