Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Travis CI configuration file improvements #5

Merged
merged 2 commits into from

4 participants

@Inoryy

We've improved our Travis CI config file based on one in this repo and encountered some issues here and there in the process.

.travis.yml
@@ -29,5 +36,6 @@ notifications:
# hipchat: token@room
script:
+ - phpunit -c app src/
@docteurklein Owner

phpunit ? what's that ?

@docteurklein Owner

in fact, we don't have a phpunit.xml(.dist) anymore in app folder.

@Inoryy
Inoryy added a note

Why do you want to advocate one testing framework over another?
You're free to remove it, of course.

@everzet
everzet added a note

Oh, come on. How many times we need to repeat this same thing: this distribution is not for entire world (Symfony standard is). This one is for people that are same-minded as we are. For people who want to be RAD. BDD through PHPUnit is not RAD. We're not advocating anything here, we've made distribution that we will use ourselves. And if you're 90% same-minded with us but prefer to use PHPUnit - just change those 2 lines in composer.json & .travis.yml.

@docteurklein Owner

no, it's just that with current config, phpunit command will fail. With current composer config, we do know that phpspec is here.

@everzet
everzet added a note

And BTW, in some cases (functional testing) even we will need PHPUnit. But we will add it to our client project configuration/composer.json when and if we'll need it, not sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@gquemener gquemener merged commit 4df4105 into master
@gquemener gquemener deleted the travis_fixes branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 4, 2013
  1. @Inoryy
  2. @Inoryy

    removed phpunit suite example

    Inoryy authored
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 7 deletions.
  1. +14 −7 .travis.yml
View
21 .travis.yml
@@ -2,20 +2,27 @@ language: php
php: 5.3 # 5.4
before_script:
+ # If you use real http requests (selenium, goutte) in your feature suite:
+ # - sudo apt-get update
+ # - sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-mysql php5-curl
+ # - sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
+ # - export HOSTNAME=localhost
+ # - export MINK_EXTENSION_PARAMS='base_url=http://$HOSTNAME/app_test.php'
+
+ # If your feature suite depends on specific domain name (change HOSTNAME parameter above):
+ # - sudo sed -i -e "/DocumentRoot/i\ServerName $HOSTNAME" /etc/apache2/sites-available/default
+ # - echo "127.0.0.1 $HOSTNAME" | sudo tee -a /etc/hosts
+
+ # - sudo /etc/init.d/apache2 restart
+
- composer install --dev --prefer-dist > /dev/null
- app/console do:da:cr -e=test > /dev/null
- app/console do:sc:cr -e=test > /dev/null
+ - chmod -R 777 app/cache app/logs
# If you use DB fixtures in your feature suite:
# - app/console do:fi:lo --no-interaction -e=test > /dev/null
- # If you use real http requests (selenium, goutte) in your feature suite:
- # - sudo apt-get update
- # - sudo apt-get install -y --force-yes apache2 libapache2-mod-php5
- # - sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
- # - sudo /etc/init.d/apache2 restart
- # - export MINK_EXTENSION_PARAMS='base_url=http://localhost/app_test.php'
-
# If you use selenium in your feature suite:
# - export DISPLAY=:99
# - wget http://selenium.googlecode.com/files/selenium-server-standalone-2.28.0.jar
Something went wrong with that request. Please try again.