[PR #180] [CLOSED] Add .travis.yml #295

Closed
opened 2026-02-26 10:30:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/opensolutions/ViMbAdmin/pull/180
Author: @PhrozenByte
Created: 4/12/2016
Status: Closed

Base: masterHead: feature/Travis


📝 Commits (1)

📊 Changes

1 file changed (+25 additions, -0 deletions)

View changed files

.travis.yml (+25 -0)

📄 Description

see https://en.wikipedia.org/wiki/Travis_CI for basic information about Travis CI

You can do absolutely amazing things with Travis (e.g. checking coding standards, running unit tests, auto-deployment of releases, updating phpDocumentor class docs, updating the project's website ...), the most basic thing Travis can do for you is checking that you don't have PHP syntax errors in your code.

This PR adds a .travis.yml doing just this: It checks all PHP files of ViMbAdmin for syntax errors with PHP 5.4, 5.5, 5.6, 7.0, HHVM and PHP's current nightly build. If one of them fail (except the nightly build), GitHub will show a appropriate failure message near the commit or PR that was checked (see https://blog.travis-ci.com/2012-09-04-pull-requests-just-got-even-more-awesome/).

Example build: https://travis-ci.org/PhrozenByte/ViMbAdmin/builds/122607730

Here's a step-by-step tutorial on how to enable Travis for your GitHub repo:

  • Go to https://travis-ci.org/ and authenticate using GitHub.
  • Go to the profile page (https://travis-ci.org/profile/opensolutions) and enable the ViMbAdmin repo. The repo may not be visible immediately (there's a yellow "Syncing from GitHub" badge on the top of the page), just refresh after a short period of time, giving Travis the chance to fetch all repos from GitHub.
  • Click on the settings icon next to the enable button and enable the "Build only if .travis.yml is present" option. Make sure both the "Build pushes" and "Build pull requests" options are enabled.
  • Merge this PR 😉

If you want to add more functionality to Travis, just ask me 😃

btw: The reason why I suggest this is because I was wondering with which version PHP introduced array dereferencing (idefix6 used it in his new plugin and I falsely thought it has been introduced with PHP 5.5). You will never have to think about something like this with Travis 😉


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/opensolutions/ViMbAdmin/pull/180 **Author:** [@PhrozenByte](https://github.com/PhrozenByte) **Created:** 4/12/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/Travis` --- ### 📝 Commits (1) - [`cc4b344`](https://github.com/opensolutions/ViMbAdmin/commit/cc4b344902f7b2c27877da4a20aef8ddd9fa5b16) Add .travis.yml ### 📊 Changes **1 file changed** (+25 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.travis.yml` (+25 -0) </details> ### 📄 Description see https://en.wikipedia.org/wiki/Travis_CI for basic information about [Travis CI](https://travis-ci.org/) You can do absolutely amazing things with Travis (e.g. checking coding standards, running unit tests, auto-deployment of releases, updating phpDocumentor class docs, updating the project's website ...), the most basic thing Travis can do for you is checking that you don't have PHP syntax errors in your code. This PR adds a `.travis.yml` doing just this: It checks all PHP files of ViMbAdmin for syntax errors with PHP 5.4, 5.5, 5.6, 7.0, HHVM and PHP's current nightly build. If one of them fail (except the nightly build), GitHub will show a appropriate failure message near the commit or PR that was checked (see https://blog.travis-ci.com/2012-09-04-pull-requests-just-got-even-more-awesome/). Example build: https://travis-ci.org/PhrozenByte/ViMbAdmin/builds/122607730 Here's a step-by-step tutorial on how to enable Travis for your GitHub repo: - Go to https://travis-ci.org/ and authenticate using GitHub. - Go to the profile page (https://travis-ci.org/profile/opensolutions) and enable the ViMbAdmin repo. The repo may not be visible immediately (there's a yellow "Syncing from GitHub" badge on the top of the page), just refresh after a short period of time, giving Travis the chance to fetch all repos from GitHub. - Click on the settings icon next to the enable button and enable the "Build only if .travis.yml is present" option. Make sure both the "Build pushes" and "Build pull requests" options are enabled. - Merge this PR :wink: If you want to add more functionality to Travis, just ask me :smiley: btw: The reason why I suggest this is because I was wondering with which version PHP introduced [array dereferencing](https://secure.php.net/manual/en/migration54.new-features.php) (idefix6 used it in his new plugin and I falsely thought it has been introduced with PHP 5.5). You will never have to think about something like this with Travis :wink: --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 10:30:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#295
No description provided.