Skip to content

Instantly share code, notes, and snippets.

@tomasnorre
Created May 3, 2015 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasnorre/a29bc062d53172a0d87f to your computer and use it in GitHub Desktop.
Save tomasnorre/a29bc062d53172a0d87f to your computer and use it in GitHub Desktop.
$repository->removeAll()
#!/bin/sh
echo "FLOW_CONTEXT: $FLOW_CONTEXT ... "
mkdir -p Quickstart/Packages/Applications/TomasNorre.GolfnetInvitational/
cd Quickstart/Packages/Applications/TomasNorre.GolfnetInvitational/
git clone git@bitbucket.org:tomasnorre/tomasnorre.golfnetinvitational.git .
cd -
cd Quickstart
./flow package:activate TomasNorre.GolfnetInvitational
./flow flow:cache:flush
cd ..
#cp /var/www/gni-live.dk/latest/shared/Configuration/Testing/Settings.yaml Quickstart/Configuration/Testing/Settings.yaml
phpunit -c Quickstart/Build/BuildEssentials/PhpUnit/UnitTests.xml Tests/Unit
phpunit -c Quickstart/Build/BuildEssentials/PhpUnit/FunctionalTests.xml Tests/Functional
[workspace] $ /bin/sh /tmp/hudson2340233296202338738.sh
FLOW_CONTEXT: Testing ...
Cloning into '.'...
/var/lib/jenkins/jobs/gnilive_qa_phpunit/workspace
Package "TomasNorre.GolfnetInvitational" is already active.
Flushed all caches for "Testing" context.
PHPUnit 4.3.5 by Sebastian Bergmann.
Configuration read from /var/lib/jenkins/jobs/gnilive_qa_phpunit/workspace/Quickstart/Build/BuildEssentials/PhpUnit/UnitTests.xml
.......................
Time: 132 ms, Memory: 5.50Mb
OK (23 tests, 32 assertions)
PHPUnit 4.3.5 by Sebastian Bergmann.
Configuration read from /var/lib/jenkins/jobs/gnilive_qa_phpunit/workspace/Quickstart/Build/BuildEssentials/PhpUnit/FunctionalTests.xml
PHP Fatal error: Call to a member function removeAll() on a non-object in /var/lib/jenkins/jobs/gnilive_qa_phpunit/workspace/Tests/Functional/Domain/Repository/PlayerRespositoryTest.php on line 47
Build step 'Execute shell' marked build as failure
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment