Skip to content

Commit

Permalink
Try test with git cloning in container
Browse files Browse the repository at this point in the history
  • Loading branch information
groovytron committed Apr 23, 2019
1 parent de6a765 commit 389448a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ services:

script:
- make
- git clone https://github.com/HE-Arc/rapport-technique.git
- ./test.sh
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update \
fonts-croscore \
fonts-crosextra-carlito \
fonts-texgyre \
git \
lmodern \
locales \
make \
Expand All @@ -32,10 +33,12 @@ RUN apt-get update \
&& apt-get autoremove --quiet --yes \
&& apt-get clean \
&& wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb \
-O pandoc.deb \
--output-document pandoc.deb \
--quiet \
&& dpkg -i pandoc.deb \
&& wget https://github.com/lierdakil/pandoc-crossref/releases/download/v${PANDOC_CROSSREF_VERSION}/linux-pandoc_2_7.tar.gz \
-O pandoc-crossref.tar.gz \
--output-document pandoc-crossref.tar.gz \
--quiet
&& tar xf pandoc-crossref.tar.gz \
&& mv pandoc-crossref /usr/local/bin

Expand Down
5 changes: 4 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash

docker run -it -v $(pwd)/rapport-technique:/home/dev/doc --user dev doc-container:latest make
docker run -it \
--user dev \
doc-container:latest \
bash -c "git clone https://github.com/HE-Arc/rapport-technique.git && cd rapport-technique && make"

0 comments on commit 389448a

Please sign in to comment.