Skip to content

Commit

Permalink
Update to new way of obtaining metacall path.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 23, 2020
1 parent 83197a5 commit 1fdb5fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions tests/c/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ COPY tests/scripts/ /scripts/

ARG CACHE_INVALIDATE

RUN export METACALL_PATH="`find /gnu/store/ -type d -name '*metacall*[^R]' | head -n 1`" \
&& echo "Running tests ${CACHE_INVALIDATE}" \
RUN echo "Running tests ${CACHE_INVALIDATE}" \
&& export LOADER_SCRIPT_PATH="/scripts/" \
&& export METACALL_PATH="/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`" \
&& export LOADER_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export SERIAL_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export DETOUR_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export PORT_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export CONFIGURATIONS_PATH="${METACALL_PATH}/configurations/global.json" \
&& cd / \
&& gcc \
-I$METACALL_PATH/include \
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ARG CACHE_INVALIDATE

RUN echo "Running tests ${CACHE_INVALIDATE}" \
&& export LOADER_SCRIPT_PATH="/scripts/" \
&& export METACALL_PATH="`find /gnu/store/ -type d -name '*metacall*[^R]' | head -n 1`" \
&& export METACALL_PATH="/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`" \
&& export LOADER_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export SERIAL_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export DETOUR_LIBRARY_PATH="${METACALL_PATH}/lib" \
Expand Down
2 changes: 1 addition & 1 deletion tests/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN echo "Running tests ${CACHE_INVALIDATE}" \
&& /gnu/bin/node /gnu/bin/npm install metacall

RUN export LOADER_SCRIPT_PATH="/scripts/" \
&& export METACALL_PATH="`find /gnu/store/ -type d -name '*metacall*[^R]' | head -n 1`" \
&& export METACALL_PATH="/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`" \
&& export LOADER_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export SERIAL_LIBRARY_PATH="${METACALL_PATH}/lib" \
&& export DETOUR_LIBRARY_PATH="${METACALL_PATH}/lib" \
Expand Down

0 comments on commit 1fdb5fb

Please sign in to comment.