diff --git a/templates/meta.yaml b/templates/meta.yaml
index 543a47eac25211de68001f9aa9803a2a9cd64d11..3170a56370afefd16b081f66ae2d89d5988abdf8 100644
--- a/templates/meta.yaml
+++ b/templates/meta.yaml
@@ -32,8 +32,8 @@ test:
   commands:
     <ENTRY_POINTS_TEST>
     - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
-    - sphinx-build -W {{ project_dir }}/doc {{ project_dir }}/sphinx
-    - sphinx-build -b doctest {{ project_dir }}/doc sphinx
+    - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
+    - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
   requires:
     - nose {{ nose }}.*
     - coverage {{ coverage }}.*