diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2016-10-10 09:15:53 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2016-10-10 09:15:53 +0200 |
commit | 84e3c36e02e4ffb4611f6e1eca37c97a0ffb4660 (patch) | |
tree | 1abeab686810336db899dda9b221795085b65dd9 | |
parent | edc8bc0b2f23bf27ac33b9de079644cc9076579a (diff) | |
download | wallabag-84e3c36e02e4ffb4611f6e1eca37c97a0ffb4660.tar.gz wallabag-84e3c36e02e4ffb4611f6e1eca37c97a0ffb4660.tar.zst wallabag-84e3c36e02e4ffb4611f6e1eca37c97a0ffb4660.zip |
Added documentation about testsuite
Fix #2415
-rwxr-xr-x | Makefile | 10 | ||||
-rw-r--r-- | docs/de/developer/testsuite.rst | 10 | ||||
-rw-r--r-- | docs/de/user/installation.rst | 3 | ||||
-rw-r--r-- | docs/en/developer/testsuite.rst | 10 | ||||
-rw-r--r-- | docs/en/user/installation.rst | 3 | ||||
-rw-r--r-- | docs/fr/developer/testsuite.rst | 10 | ||||
-rw-r--r-- | docs/fr/user/installation.rst | 3 | ||||
-rw-r--r-- | scripts/update.sh | 2 |
8 files changed, 46 insertions, 5 deletions
@@ -1,7 +1,9 @@ | |||
1 | TMP_FOLDER=/tmp | 1 | TMP_FOLDER=/tmp |
2 | RELEASE_FOLDER=wllbg-release | 2 | RELEASE_FOLDER=wllbg-release |
3 | 3 | ||
4 | ENV=prod | 4 | ifndef ENV |
5 | ENV=prod | ||
6 | endif | ||
5 | 7 | ||
6 | help: ## Display this help menu | 8 | help: ## Display this help menu |
7 | @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | 9 | @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
@@ -15,14 +17,14 @@ install: ## Install wallabag with the latest version | |||
15 | update: ## Update the wallabag installation to the latest version | 17 | update: ## Update the wallabag installation to the latest version |
16 | @sh scripts/update.sh $(ENV) | 18 | @sh scripts/update.sh $(ENV) |
17 | 19 | ||
18 | run: ## Run the wallabag server | 20 | run: ## Run the wallabag built-in server |
19 | php bin/console server:run --env=$(ENV) | 21 | @php bin/console server:run --env=$(ENV) |
20 | 22 | ||
21 | build: ## Run grunt | 23 | build: ## Run grunt |
22 | @grunt | 24 | @grunt |
23 | 25 | ||
24 | test: ## Launch wallabag testsuite | 26 | test: ## Launch wallabag testsuite |
25 | @ant prepare && phpunit -v | 27 | @ant prepare && vendor/phpunit/phpunit/phpunit -v |
26 | 28 | ||
27 | release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`). | 29 | release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`). |
28 | ifndef VERSION | 30 | ifndef VERSION |
diff --git a/docs/de/developer/testsuite.rst b/docs/de/developer/testsuite.rst new file mode 100644 index 00000000..b2b16cdc --- /dev/null +++ b/docs/de/developer/testsuite.rst | |||
@@ -0,0 +1,10 @@ | |||
1 | Testsuite | ||
2 | ========= | ||
3 | |||
4 | To ensure wallabag development quality, we wrote tests with `PHPUnit <https://phpunit.de>`_. | ||
5 | |||
6 | If you contribute to the project (by translating the application, by fixing bugs or by adding a new feature), please write your own tests. | ||
7 | |||
8 | To launch wallabag testsuite, you need to install `ant <http://ant.apache.org>`_. | ||
9 | |||
10 | Then, execute this command ``make test``. | ||
diff --git a/docs/de/user/installation.rst b/docs/de/user/installation.rst index dc2b8b4d..bee3249b 100644 --- a/docs/de/user/installation.rst +++ b/docs/de/user/installation.rst | |||
@@ -6,6 +6,9 @@ Voraussetzungen | |||
6 | 6 | ||
7 | wallabag ist kompatibel mit PHP >= 5.5, inkl. PHP 7. | 7 | wallabag ist kompatibel mit PHP >= 5.5, inkl. PHP 7. |
8 | 8 | ||
9 | .. note:: | ||
10 | Pour installer wallabag facilement, nous avons créé un ``Makefile``, vous avez donc besoin d'avoir installé l'outil ``make``. | ||
11 | |||
9 | wallabag nutzt eine große Anzahl an Bibliotheken, um zu funktionieren. Diese Bibliotheken müssen mit einem Tool namens Composer installiert werden. Du musst es installieren sofern du es bisher noch nicht gemacht hast. | 12 | wallabag nutzt eine große Anzahl an Bibliotheken, um zu funktionieren. Diese Bibliotheken müssen mit einem Tool namens Composer installiert werden. Du musst es installieren sofern du es bisher noch nicht gemacht hast. |
10 | 13 | ||
11 | Composer installieren: | 14 | Composer installieren: |
diff --git a/docs/en/developer/testsuite.rst b/docs/en/developer/testsuite.rst new file mode 100644 index 00000000..b2b16cdc --- /dev/null +++ b/docs/en/developer/testsuite.rst | |||
@@ -0,0 +1,10 @@ | |||
1 | Testsuite | ||
2 | ========= | ||
3 | |||
4 | To ensure wallabag development quality, we wrote tests with `PHPUnit <https://phpunit.de>`_. | ||
5 | |||
6 | If you contribute to the project (by translating the application, by fixing bugs or by adding a new feature), please write your own tests. | ||
7 | |||
8 | To launch wallabag testsuite, you need to install `ant <http://ant.apache.org>`_. | ||
9 | |||
10 | Then, execute this command ``make test``. | ||
diff --git a/docs/en/user/installation.rst b/docs/en/user/installation.rst index a2f0d07b..0920b976 100644 --- a/docs/en/user/installation.rst +++ b/docs/en/user/installation.rst | |||
@@ -6,6 +6,9 @@ Requirements | |||
6 | 6 | ||
7 | wallabag is compatible with PHP >= 5.5, including PHP 7. | 7 | wallabag is compatible with PHP >= 5.5, including PHP 7. |
8 | 8 | ||
9 | .. note:: | ||
10 | To install wallabag easily, we create a ``Makefile``, so you need to have the ``make`` tool. | ||
11 | |||
9 | wallabag uses a large number of PHP libraries in order to function. These libraries must be installed with a tool called Composer. You need to install it if you have not already done so and be sure to use the 1.2 version (if you already have Composer, run a ``composer selfupdate``). | 12 | wallabag uses a large number of PHP libraries in order to function. These libraries must be installed with a tool called Composer. You need to install it if you have not already done so and be sure to use the 1.2 version (if you already have Composer, run a ``composer selfupdate``). |
10 | 13 | ||
11 | Install Composer: | 14 | Install Composer: |
diff --git a/docs/fr/developer/testsuite.rst b/docs/fr/developer/testsuite.rst new file mode 100644 index 00000000..bd5c68c6 --- /dev/null +++ b/docs/fr/developer/testsuite.rst | |||
@@ -0,0 +1,10 @@ | |||
1 | Suite de tests | ||
2 | ============== | ||
3 | |||
4 | Pour assurer la qualité du développement de wallabag, nous avons écrit des tests avec `PHPUnit <https://phpunit.de>`_. | ||
5 | |||
6 | Si vous contribuez au projet (en traduisant l'application, en corrigeant des bugs ou en ajoutant une nouvelle fonctionnalité), merci d'écrire vos propres tests. | ||
7 | |||
8 | Pour lancer la suite de tests de wallabag, vous devez installer `ant <http://ant.apache.org>`_. | ||
9 | |||
10 | Ensuite, exécutez la commande ``make test``. | ||
diff --git a/docs/fr/user/installation.rst b/docs/fr/user/installation.rst index b47813be..55614d72 100644 --- a/docs/fr/user/installation.rst +++ b/docs/fr/user/installation.rst | |||
@@ -6,6 +6,9 @@ Pré-requis | |||
6 | 6 | ||
7 | wallabag est compatible avec PHP >= 5.5, PHP 7 inclus. | 7 | wallabag est compatible avec PHP >= 5.5, PHP 7 inclus. |
8 | 8 | ||
9 | .. note:: | ||
10 | Pour installer wallabag facilement, nous avons créé un ``Makefile``, vous avez donc besoin d'avoir installé l'outil ``make``. | ||
11 | |||
9 | wallabag utilise un grand nombre de bibliothèques PHP pour fonctionner. Ces bibliothèques doivent être installées à l'aide d'un outil nommé Composer. Vous devez l'installer si ce n'est déjà fait et vous assurer que vous utilisez bien la version 1.2 (si vous avez déjà Composer, faite un ``composer selfupdate``). | 12 | wallabag utilise un grand nombre de bibliothèques PHP pour fonctionner. Ces bibliothèques doivent être installées à l'aide d'un outil nommé Composer. Vous devez l'installer si ce n'est déjà fait et vous assurer que vous utilisez bien la version 1.2 (si vous avez déjà Composer, faite un ``composer selfupdate``). |
10 | 13 | ||
11 | Installation de Composer : | 14 | Installation de Composer : |
diff --git a/scripts/update.sh b/scripts/update.sh index 167e84e1..48281210 100644 --- a/scripts/update.sh +++ b/scripts/update.sh | |||
@@ -6,6 +6,6 @@ TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | |||
6 | rm -rf var/cache/* | 6 | rm -rf var/cache/* |
7 | git fetch origin | 7 | git fetch origin |
8 | git fetch --tags | 8 | git fetch --tags |
9 | git checkout $TAG | 9 | git checkout $TAG --force |
10 | SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist | 10 | SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist |
11 | php bin/console cache:clear --env=$ENV | 11 | php bin/console cache:clear --env=$ENV |