Skip to content

Add script for tests to increase FDs limit #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey --no-analytics=true

- name: Run test suite
run: vendor/bin/phpunit --color tests/
run: sh scripts/tests.sh

- name: Run linter
run: vendor/bin/php-cs-fixer fix -v --config=.php_cs.dist --using-cache=no --dry-run
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Each PR should pass the tests and the linter to be accepted.
```bash
# Tests
$ docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey --no-analytics=true
$ vendor/bin/phpunit --color tests/
$ sh scripts/tests.sh
# Linter (with auto-fix)
$ vendor/bin/php-cs-fixer fix --verbose --config=.php_cs.dist
# Linter (without auto-fix)
Expand Down
7 changes: 7 additions & 0 deletions scripts/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

echo 'Setting FDs limit to 1000'
ulimit -n 1000

echo "Launching tests..."
vendor/bin/phpunit --color tests/