-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7353f9
commit 5df8c36
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Distro | ||
FROM opensuse:tumbleweed | ||
MAINTAINER Hazen Babcock <[email protected]> | ||
|
||
# Update sources | ||
RUN zypper --non-interactive update | ||
|
||
# Get dependencies, these are in alphabetical order | ||
# | ||
# Missing: | ||
# D compiler. | ||
# PDL (Perl Data Language). | ||
# | ||
RUN zypper --non-interactive install cmake | ||
RUN zypper --non-interactive install free-ttf-fonts | ||
RUN zypper --non-interactive install gcc | ||
RUN zypper --non-interactive install gcc-ada | ||
RUN zypper --non-interactive install gcc-c++ | ||
RUN zypper --non-interactive install gcc-fortran | ||
RUN zypper --non-interactive install gcc-java | ||
RUN zypper --non-interactive install git | ||
RUN zypper --non-interactive install libcairo2 | ||
RUN zypper --non-interactive install libgtk-2_0-0 | ||
RUN zypper --non-interactive install libharu-devel | ||
RUN zypper --non-interactive install libLASi-devel | ||
RUN zypper --non-interactive install liblua5_2 | ||
RUN zypper --non-interactive install libpango-1_0-0 | ||
RUN zypper --non-interactive install libqt4-devel | ||
RUN zypper --non-interactive install lua52 | ||
RUN zypper --non-interactive install ocaml | ||
RUN zypper --non-interactive install octave | ||
RUN zypper --non-interactive install octave-devel | ||
RUN zypper --non-interactive install pango-devel | ||
RUN zypper --non-interactive install perl-XML-DOM | ||
RUN zypper --non-interactive install perl-XML-Parser | ||
RUN zypper --non-interactive install python-devel | ||
RUN zypper --non-interactive install python-numpy | ||
RUN zypper --non-interactive install python-qt4 | ||
RUN zypper --non-interactive install python-qt4-devel | ||
RUN zypper --non-interactive install python-sip | ||
RUN zypper --non-interactive install python-sip-devel | ||
RUN zypper --non-interactive install qhull-devel | ||
RUN zypper --non-interactive install shapelib | ||
RUN zypper --non-interactive install swig | ||
RUN zypper --non-interactive install tcl | ||
RUN zypper --non-interactive install tcl-devel | ||
RUN zypper --non-interactive install wxWidgets-3_0-devel | ||
|
||
# Set working directory | ||
WORKDIR /plplot | ||
|
||
# Get PLplot | ||
RUN git clone git://git.code.sf.net/p/plplot/plplot plplot | ||
RUN mkdir plplot-build | ||
|
||
# Copy in the test shell script | ||
COPY ./test_plplot.sh ./ | ||
|
||
# This is what what gets run when this is started. | ||
CMD sh test_plplot.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# 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. | ||
# | ||
cd ../plplot-build | ||
pwd | ||
echo "<!-- cmake -->" | ||
cmake ../plplot -DBUILD_TEST=ON -DENABLE_tk=OFF | ||
echo "<!-- cache -->" | ||
more CMakeCache.txt | ||
echo "<!-- make -->" | ||
make VERBOSE=1 | ||
echo "<!-- ctest -->" | ||
ctest --verbose | ||
echo "<!-- done -->" |