Skip to content

Commit

Permalink
Add the ability to test a local repo (if mounted).
Browse files Browse the repository at this point in the history
  • Loading branch information
HazenBabcock committed Nov 26, 2016
1 parent bd29bbd commit d8dc509
Show file tree
Hide file tree
Showing 17 changed files with 231 additions and 126 deletions.
3 changes: 3 additions & 0 deletions plplot/arch_linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ COPY ./test_plplot.sh ./
# Record when this image was made
RUN date > image_date.txt

# Volume for testing a local repo
VOLUME ["/plplot_repo"]

# This is what what gets run when this is started.
CMD sh test_plplot.sh
37 changes: 23 additions & 14 deletions plplot/arch_linux/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@

# Move to source directory & update source.
cd plplot
pwd
git fetch origin
git merge origin/master

#
# Move to build directory, build and test. Note that all the files
# that are generated will disappear as soon as this stops running
# so we'll capture everything by redirecting the output to a file.
# Note that all the files that are generated will disappear as soon
# as this stops running so we'll capture everything by redirecting
# the output to a file.
#
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
if test "$(ls -A /plplot_repo)"; then
# Use local volume if available.
echo "<!-- using local repo -->"
cd plplot-build
echo "<!-- cmake -->"
cmake /plplot_repo -DBUILD_TEST=ON -DENABLE_tk=OFF
else
# Move to source directory & update source.
echo "<!-- using SF repo -->"
cd plplot
pwd
git fetch origin
git merge origin/master
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
fi

# Build and test.
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
Expand Down
3 changes: 3 additions & 0 deletions plplot/centos_latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ COPY ./test_plplot.sh ./
# Record when this image was made
RUN date > image_date.txt

# Volume for testing a local repo
VOLUME ["/plplot_repo"]

# This is what what gets run when this is started.
CMD sh test_plplot.sh
37 changes: 23 additions & 14 deletions plplot/centos_latest/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@

# Move to source directory & update source.
cd plplot
pwd
git fetch origin
git merge origin/master

#
# Move to build directory, build and test. Note that all the files
# that are generated will disappear as soon as this stops running
# so we'll capture everything by redirecting the output to a file.
# Note that all the files that are generated will disappear as soon
# as this stops running so we'll capture everything by redirecting
# the output to a file.
#
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
if test "$(ls -A /plplot_repo)"; then
# Use local volume if available.
echo "<!-- using local repo -->"
cd plplot-build
echo "<!-- cmake -->"
cmake /plplot_repo -DBUILD_TEST=ON -DENABLE_tk=OFF
else
# Move to source directory & update source.
echo "<!-- using SF repo -->"
cd plplot
pwd
git fetch origin
git merge origin/master
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
fi

# Build and test.
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
Expand Down
3 changes: 3 additions & 0 deletions plplot/debian_latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@ COPY ./test_plplot.sh ./
# Record when this image was made
RUN date > image_date.txt

# Volume for testing a local repo
VOLUME ["/plplot_repo"]

# This is what what gets run when this is started.
CMD sh test_plplot.sh
37 changes: 23 additions & 14 deletions plplot/debian_latest/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@

# Move to source directory & update source.
cd plplot
pwd
git fetch origin
git merge origin/master

#
# Move to build directory, build and test. Note that all the files
# that are generated will disappear as soon as this stops running
# so we'll capture everything by redirecting the output to a file.
# Note that all the files that are generated will disappear as soon
# as this stops running so we'll capture everything by redirecting
# the output to a file.
#
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
if test "$(ls -A /plplot_repo)"; then
# Use local volume if available.
echo "<!-- using local repo -->"
cd plplot-build
echo "<!-- cmake -->"
cmake /plplot_repo -DBUILD_TEST=ON -DENABLE_tk=OFF
else
# Move to source directory & update source.
echo "<!-- using SF repo -->"
cd plplot
pwd
git fetch origin
git merge origin/master
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
fi

# Build and test.
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
Expand Down
3 changes: 3 additions & 0 deletions plplot/debian_stable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@ COPY ./test_plplot.sh ./
# Record when this image was made
RUN date > image_date.txt

# Volume for testing a local repo
VOLUME ["/plplot_repo"]

# This is what what gets run when this is started.
CMD sh test_plplot.sh
37 changes: 23 additions & 14 deletions plplot/debian_stable/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@

# Move to source directory & update source.
cd plplot
pwd
git fetch origin
git merge origin/master

#
# Move to build directory, build and test. Note that all the files
# that are generated will disappear as soon as this stops running
# so we'll capture everything by redirecting the output to a file.
# Note that all the files that are generated will disappear as soon
# as this stops running so we'll capture everything by redirecting
# the output to a file.
#
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
if test "$(ls -A /plplot_repo)"; then
# Use local volume if available.
echo "<!-- using local repo -->"
cd plplot-build
echo "<!-- cmake -->"
cmake /plplot_repo -DBUILD_TEST=ON -DENABLE_tk=OFF
else
# Move to source directory & update source.
echo "<!-- using SF repo -->"
cd plplot
pwd
git fetch origin
git merge origin/master
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
fi

# Build and test.
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
Expand Down
3 changes: 3 additions & 0 deletions plplot/fedora_latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@ COPY ./test_plplot.sh ./
# Record when this image was made
RUN date > image_date.txt

# Volume for testing a local repo
VOLUME ["/plplot_repo"]

# This is what what gets run when this is started.
CMD sh test_plplot.sh
37 changes: 23 additions & 14 deletions plplot/fedora_latest/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@

# Move to source directory & update source.
cd plplot
pwd
git fetch origin
git merge origin/master

#
# Move to build directory, build and test. Note that all the files
# that are generated will disappear as soon as this stops running
# so we'll capture everything by redirecting the output to a file.
# Note that all the files that are generated will disappear as soon
# as this stops running so we'll capture everything by redirecting
# the output to a file.
#
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
if test "$(ls -A /plplot_repo)"; then
# Use local volume if available.
echo "<!-- using local repo -->"
cd plplot-build
echo "<!-- cmake -->"
cmake /plplot_repo -DBUILD_TEST=ON -DENABLE_tk=OFF
else
# Move to source directory & update source.
echo "<!-- using SF repo -->"
cd plplot
pwd
git fetch origin
git merge origin/master
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
fi

# Build and test.
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
Expand Down
3 changes: 3 additions & 0 deletions plplot/freebsd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ MAINTAINER Hazen Babcock <[email protected]>
# Copy in the test shell script
#COPY ./test_plplot.sh ./

# Volume for testing a local repo
#VOLUME ["/plplot_repo"]

# This is what what gets run when this is started.
#CMD sh test_plplot.sh
37 changes: 23 additions & 14 deletions plplot/freebsd/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@

# Move to source directory & update source.
cd plplot
pwd
git fetch origin
git merge origin/master

#
# Move to build directory, build and test. Note that all the files
# that are generated will disappear as soon as this stops running
# so we'll capture everything by redirecting the output to a file.
# Note that all the files that are generated will disappear as soon
# as this stops running so we'll capture everything by redirecting
# the output to a file.
#
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
if test "$(ls -A /plplot_repo)"; then
# Use local volume if available.
echo "<!-- using local repo -->"
cd plplot-build
echo "<!-- cmake -->"
cmake /plplot_repo -DBUILD_TEST=ON -DENABLE_tk=OFF
else
# Move to source directory & update source.
echo "<!-- using SF repo -->"
cd plplot
pwd
git fetch origin
git merge origin/master
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
fi

# Build and test.
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
Expand Down
3 changes: 3 additions & 0 deletions plplot/opensuse_tumbleweed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ COPY ./test_plplot.sh ./
# Record when this image was made
RUN date > image_date.txt

# Volume for testing a local repo
VOLUME ["/plplot_repo"]

# This is what what gets run when this is started.
CMD sh test_plplot.sh
37 changes: 23 additions & 14 deletions plplot/opensuse_tumbleweed/test_plplot.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@

# Move to source directory & update source.
cd plplot
pwd
git fetch origin
git merge origin/master

#
# Move to build directory, build and test. Note that all the files
# that are generated will disappear as soon as this stops running
# so we'll capture everything by redirecting the output to a file.
# Note that all the files that are generated will disappear as soon
# as this stops running so we'll capture everything by redirecting
# the output to a file.
#
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
if test "$(ls -A /plplot_repo)"; then
# Use local volume if available.
echo "<!-- using local repo -->"
cd plplot-build
echo "<!-- cmake -->"
cmake /plplot_repo -DBUILD_TEST=ON -DENABLE_tk=OFF
else
# Move to source directory & update source.
echo "<!-- using SF repo -->"
cd plplot
pwd
git fetch origin
git merge origin/master
cd ../plplot-build
pwd
echo "<!-- cmake -->"
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF
fi

# Build and test.
echo "<!-- cache -->"
more CMakeCache.txt
echo "<!-- make -->"
Expand Down
Loading

0 comments on commit d8dc509

Please sign in to comment.