Skip to content

Commit

Permalink
Merge pull request #4 from martinhummer/feature_travis_integration
Browse files Browse the repository at this point in the history
finalize travis integration
  • Loading branch information
martinhummer authored Aug 17, 2018
2 parents 122db50 + 3368914 commit c32da18
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 20 deletions.
22 changes: 21 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,31 @@ cache:
directories:
- $HOME/.composer/cache

env:
global:
- secure: "d7Wuxpa7KEqgwfLHqTPdfkYvtY2LBfvPcs0jYzqVQe6ZOHOHgvRcaZZKwSwihskMe5F9rea5ifUWxk7qGvL1d83UHecohJMIg7qoI3adv20j677Xr99fIqVkbma3KuIAwEr2bnFZcSyVflBK6wPMLtgvZf3hWxvvuO9V4x8L4GjOqmfuPoXKjFoB4+D0boAZihfxB5/QUEITJStlBMeg8abHfN4sPvXU4RvbAf04IatHYIQh3qGG8+VZh9EqMAnK1I/Sjf9UL6S0UqUagJL7lE842LBeIdqKWz76zyTunDHqIWwvkwqhYX6yGGnkkN0Ttlp4OKvmpj6pLwlI5qmXX/CR7MyBP/r8ud/bK5F3/+YMAY7BgzpDDGeWROt3LN/mC6lcvsLJl48/Dj+g1E+EOPOO8pfxtrvpzO+4awSX1Yt5lTJLx27fWfseX+ZS1FbMCZzj8XZjjRanKpV4FldqwY3QL/Emu+lD5mMn86jp7PWcMECtnYzK+/VdFHI9juBs8ghuW1uVIFltOdy9me4HaLfmO8VLcelvRtNXZx0ak6dBF86M7IiCkQ0VBX1iOtV8Gr0qG70wl/QMwiKGGcIhPA5dq7Q5bHAibmQu9kVxRvBpaH6hPWOFO/JSqlHv0DzEybr4afBUxZmkXKEoHR9+Eu+LmzFAUg3CruIxNSFkBvs="
- secure: "Rvi4xoUyKbAQHFNqt9wfOSIIKlZRFWEc3LH0TU19ZAPEQdCO6PmL8FzXVo6NbC9aPIncxV8SZFkUJAb0vqwg8AnyasCa8pXgjVk9I5BdE9XVrnHg0ndOItwJGQUrFl/NKKu4kgdbqctNR3FS7hGW4sy+1+LsuWG8GabKG6toA/O9gL49wtgqDPrF6ir2b8WVcMK6TsbGk1u+kJJJZ3Bw4MDjYNw9QrtfC4i7cbCGYDVpsNk0EbXjY8lzp0LLW7NJ1FwCK5oQ40HbcXpH+3rO0Uyslv5s5VI7NbWvuDX3CicrnfFrwYOF7Crcv/AJ9T5lT5Hf9j4NVGRv0XgzhBJ2RlyewrBVTX8XfPO9BsJ6UfejuXUkjVF+M8qnq3u77RSYcjDuGQtF9vPoMMMxA0qP2zI6pT8LMfGVgOLfzd2d2v6c/6oagiYPa1tyKolfANAAUbyjsNEpmtcwKFyK4aVjomJCZoWOYeX5VnFZ3wuEC3FNzLlabtEc9n5oWk19WaU0EVMVSADNsYGXxeY1JifaHdQudlsABVZkXQ9Gt55vxiCTV/XCUFGYv7QiLcwF/JJaYwOzSZYoopIWcFHun/wi9poJlFK9wprs/vDDsFsIuwqPNe7WWf+DnEqDQ8UEJi7GbLeLSUeYpNhSy9m+Egu1u6v1EjHnjTjqwEQNhEV3ZZs="

before_script:
- composer self-update -q
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- if [ -z "$dependencies" ]; then composer install; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update -n; fi;
- composer show -i
- phpenv config-rm xdebug.ini
- composer require typo3/cms=^8
# Restore composer.json
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
- touch $PWD/Tests/Functional/.env

script:
- >
.Build/bin/phpunit -v -c Tests/Functional/FunctionalTests.xml
echo;
echo "Running functional tests";
export typo3DatabaseName="typo3";
export typo3DatabaseHost="localhost";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="";
.Build/bin/phpunit -v -c Tests/Functional/FunctionalTests.xml
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
Algolia Search Indexer for TYPO3 8LTS
============================================
This Extension is in a very early stage and is heavily dependent on [Codappix/search_core](https://github.com/Codappix/search_core)
This Extension depends on [Codappix/search_core](https://github.com/Codappix/search_core)


Translation Handling
Known Bugs - Translation Handling
----------------
Indexing of records works fine until it comes to pages_language_overlay.
This should be obsolete with TYPO3 9

Delete & Update does not work for this indexer and we suggest to use a cron job to reindex this table:
Delete & Update does not work for this indexer and i suggest to use a cron job to reindex this table:
typo3cms index:delete pages_language_overlay
typo3cms index:index pages_language_overlay


Testing your extension
Testing the extension
============================================
Test Setup
----------
The first thing you need to do is to go to your extension directory and *"tell"* composer to set up
the testing environment for a TYPO3 version you want to test against. For that, type `composer install`
the testing environment for a TYPO3 version you want to test against. For that, type `composer install`

Environment Variables
----------
Algolia credentials are taken from environment variables which are located at:
`/Tests/Functional/.env.example`
Update this file with your credentials and rename it to `/Tests/Functional/.env`


Unit Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public function tearDown()

protected function cleanUp()
{
$this->client->deleteIndex($this->indexName);
$request = $this->client->deleteIndex($this->indexName);
$this->index->waitTask($request['taskID']);
}

/**
Expand All @@ -91,8 +92,12 @@ public function initIndex($documentType)

if ($this->indexName) {
$this->index = $this->client->initIndex($this->indexName);
$request = $this->index->clearIndex();
$this->index->waitTask($request['taskID']);
} else {
$this->index = $this->client->initIndex($documentType);
$request = $this->index->clearIndex();
$this->index->waitTask($request['taskID']);
}
}

Expand Down
12 changes: 0 additions & 12 deletions Tests/Functional/Fixtures/AlgoliaCredentials.typoscript

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"typo3/cms": "~8.7",
"codappix/search_core": "0.0.4",
"algolia/algoliasearch-client-php": "^1.23",
"symfony/dotenv": "^4.1"
"symfony/dotenv": "3.4"
},
"require-dev": {
"phpunit/phpunit": "~6.2.0",
Expand Down

0 comments on commit c32da18

Please sign in to comment.