- redis
# faster builds on docker-container setup
-sudo: required
+sudo: false
# used for HHVM
addons:
apt:
packages:
- tidy
- postgresql: 9.5
# cache vendor dirs
cache:
- if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
- composer self-update --no-progress
- if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
- - if [[ $DB = pgsql ]]; then psql -U postgres wallabag_test -c 'create extension "uuid-ossp";'; fi;
install:
- if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.7; fi;
@grunt
test: ## Launch wallabag testsuite
- @if [ ! -d "vendor/phpunit" ]; then composer install; fi
- @ant prepare && vendor/phpunit/phpunit/phpunit -v
+ @ant prepare && bin/simple-phpunit -v
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
ifndef VERSION
$this->skipIf($entryTable->hasColumn('uuid'), 'It seems that you already played this migration.');
- $entryTable->addColumn('uuid', 'guid', [
+ $entryTable->addColumn('uuid', 'string', [
'notnull' => false,
+ 'length' => 23,
]);
$this->addSql('INSERT INTO '.$this->getTable('craue_config_setting')." (name, value, section) VALUES ('share_public', '1', 'entry')");
}
{
$this->checkUserAction($entry);
- $version = $this->getDoctrine()->getManager()->getConnection()->query('SELECT version();')->fetchColumn();
- var_dump($version);
-
return $this->render(
'WallabagCoreBundle:Entry:entry.html.twig',
['entry' => $entry]
/**
* @var string
*
- * @ORM\Column(name="uuid", type="guid", nullable=true)
+ * @ORM\Column(name="uuid", type="string", length=23, nullable=true)
*
* @Groups({"entries_for_user", "export_all"})
*/
// generating the uuid
$client->request('GET', '/share/'.$content->getId());
- var_dump($client->getResponse()->getContent());
$this->assertEquals(302, $client->getResponse()->getStatusCode());
// follow link with uuid