From 07aa7401d96c4de5e5cd25b9e69ea06c9984fe23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hadrien=20Gourl=C3=A9?= <gourlehadrien@gmail.com>
Date: Fri, 10 Aug 2018 08:42:23 +0200
Subject: [PATCH] update test files

---
 tests/lint_examples/minimal_working_example/Dockerfile  | 3 ++-
 tests/lint_examples/minimal_working_example/Singularity | 6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/lint_examples/minimal_working_example/Dockerfile b/tests/lint_examples/minimal_working_example/Dockerfile
index 1ed80a41d7..f2ebb853e0 100644
--- a/tests/lint_examples/minimal_working_example/Dockerfile
+++ b/tests/lint_examples/minimal_working_example/Dockerfile
@@ -4,4 +4,5 @@ LABEL authors="phil.ewels@scilifelab.se" \
     description="Docker image containing all requirements for the nf-core tools pipeline"
 
 COPY environment.yml /
-RUN conda env update -n root -f /environment.yml && conda clean -a
+RUN conda env create -f /environment.yml && conda clean -a
+ENV PATH /opt/conda/envs/nfcore-tools-0.4/bin:$PATH
diff --git a/tests/lint_examples/minimal_working_example/Singularity b/tests/lint_examples/minimal_working_example/Singularity
index 5935e8edf0..77cfd71028 100644
--- a/tests/lint_examples/minimal_working_example/Singularity
+++ b/tests/lint_examples/minimal_working_example/Singularity
@@ -6,9 +6,13 @@ Bootstrap:docker
     DESCRIPTION Container image containing all requirements for the nf-core/tools pipeline
     VERSION 0.4
 
+%environment
+    PATH=/opt/conda/envs/nfcore-tools-0.4/bin:$PATH
+    export PATH
+
 %files
     environment.yml /
 
 %post
-    /opt/conda/bin/conda env update -n root -f /environment.yml
+    /opt/conda/bin/conda env create -n root -f /environment.yml
     /opt/conda/bin/conda clean -a