Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
db166090
Commit
db166090
authored
Nov 08, 2014
by
John Chodera (MSKCC)
Browse files
Fixed some path errors with Jenkins build scripts, and added preparation scripts.
parent
438463ed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
7 deletions
+52
-7
devtools/packaging/scripts/linux/build.sh
devtools/packaging/scripts/linux/build.sh
+3
-3
devtools/packaging/scripts/linux/prepare.sh
devtools/packaging/scripts/linux/prepare.sh
+23
-0
devtools/packaging/scripts/osx/build.sh
devtools/packaging/scripts/osx/build.sh
+3
-4
devtools/packaging/scripts/osx/prepare.sh
devtools/packaging/scripts/osx/prepare.sh
+23
-0
No files found.
devtools/packaging/scripts/linux/build.sh
View file @
db166090
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Note that this must be run from outside the checked-out openmm/ directory.
# Note that this must be run from outside the checked-out openmm/ directory.
# Add conda binaries to path.
# Add conda binaries to path.
PATH
=
$
{
HOME
}
/miniconda/bin:
$
{
PATH
}
PATH
=
$
WORKSPACE
/miniconda/bin:
$PATH
INSTALL
=
`
pwd
`
/install
INSTALL
=
`
pwd
`
/install
CMAKE_FLAGS
=
"-DCMAKE_INSTALL_PREFIX=
$INSTALL
"
CMAKE_FLAGS
=
"-DCMAKE_INSTALL_PREFIX=
$INSTALL
"
...
@@ -21,7 +21,7 @@ CMAKE_FLAGS+=" -DOPENCL_INCLUDE_DIR=/usr/local/cuda-6.5/include"
...
@@ -21,7 +21,7 @@ CMAKE_FLAGS+=" -DOPENCL_INCLUDE_DIR=/usr/local/cuda-6.5/include"
CMAKE_FLAGS+
=
" -DOPENCL_LIBRARY=/usr/local/cuda-6.5/lib64/libOpenCL.so"
CMAKE_FLAGS+
=
" -DOPENCL_LIBRARY=/usr/local/cuda-6.5/lib64/libOpenCL.so"
# Set location for FFTW3
# Set location for FFTW3
PREFIX
=
"
$
{
HOME
}
/miniconda"
PREFIX
=
"
$
WORKSPACE
/miniconda"
CMAKE_FLAGS+
=
" -DFFTW_INCLUDES=
$PREFIX
/include"
CMAKE_FLAGS+
=
" -DFFTW_INCLUDES=
$PREFIX
/include"
CMAKE_FLAGS+
=
" -DFFTW_LIBRARY=
$PREFIX
/lib/libfftw3f.so"
CMAKE_FLAGS+
=
" -DFFTW_LIBRARY=
$PREFIX
/lib/libfftw3f.so"
CMAKE_FLAGS+
=
" -DFFTW_THREADS_LIBRARY=
$PREFIX
/lib/libfftw3f_threads.so"
CMAKE_FLAGS+
=
" -DFFTW_THREADS_LIBRARY=
$PREFIX
/lib/libfftw3f_threads.so"
...
@@ -41,7 +41,7 @@ OPENMM_INCLUDE_PATH=$INSTALL/include
...
@@ -41,7 +41,7 @@ OPENMM_INCLUDE_PATH=$INSTALL/include
OPENMM_LIB_PATH
=
$INSTALL
/lib
OPENMM_LIB_PATH
=
$INSTALL
/lib
cd
python
cd
python
python setup.py
install
--prefix
=
$INSTALL
python setup.py
install
--prefix
=
$INSTALL
cd
..
cd
..
/..
# Copy all tests to bin directory so they will be distributed with install package.
# Copy all tests to bin directory so they will be distributed with install package.
#cp `find . -name "Test*" -type f -maxdepth 1` $PREFIX/bin
#cp `find . -name "Test*" -type f -maxdepth 1` $PREFIX/bin
devtools/packaging/scripts/linux/prepare.sh
0 → 100755
View file @
db166090
#!/bin/tcsh
# Prepare for build by ensuring necessary prerequisites are locally installed.
# Install miniconda
export
VERSION
=
"3.7.0"
export
PLATFORM
=
"Linux"
export
ARCH
=
"x86_64"
export
MINICONDA
=
"Miniconda-
$VERSION
-
$PLATFORM
-
$ARCH
.sh"
if
[
-f
$MINICONDA
]
;
then
echo
"File
$MINICONDA
exists, not downloading."
export
PATH
=
$WORKSPACE
/miniconda/bin:
$PATH
else
echo
"Downloading miniconda..."
wget http://repo.continuum.io/miniconda/
${
MINICONDA
}
bash
${
MINICONDA
}
-b
-p
miniconda
PIP_ARGS
=
"-U"
export
PATH
=
$WORKSPACE
/miniconda/bin:
$PATH
conda config
--add
channels http://conda.binstar.org/omnia
conda
install
--yes
--quiet
swig fftw3f pip
pip
install
sphinxcontrib-bibtex
fi
devtools/packaging/scripts/osx/build.sh
View file @
db166090
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Note that this must be run from outside the checked-out openmm/ directory.
# Note that this must be run from outside the checked-out openmm/ directory.
# Add conda binaries to path.
# Add conda binaries to path.
PATH
=
$
{
HOME
}
/miniconda/bin:
$
{
PATH
}
PATH
=
$
WORKSPACE
/miniconda/bin:
$PATH
INSTALL
=
`
pwd
`
/install
INSTALL
=
`
pwd
`
/install
CMAKE_FLAGS
=
"-DCMAKE_INSTALL_PREFIX=
$INSTALL
"
CMAKE_FLAGS
=
"-DCMAKE_INSTALL_PREFIX=
$INSTALL
"
...
@@ -22,7 +22,7 @@ CMAKE_FLAGS+=" -DOPENMM_BUILD_OPENCL_DOUBLE_PRECISION_TESTS=FALSE"
...
@@ -22,7 +22,7 @@ CMAKE_FLAGS+=" -DOPENMM_BUILD_OPENCL_DOUBLE_PRECISION_TESTS=FALSE"
# Build in subdirectory.
# Build in subdirectory.
# Set location for FFTW3
# Set location for FFTW3
PREFIX
=
"
$
{
HOME
}
/miniconda"
PREFIX
=
"
$
WORKSPACE
/miniconda"
CMAKE_FLAGS+
=
" -DFFTW_INCLUDES=
$PREFIX
/include"
CMAKE_FLAGS+
=
" -DFFTW_INCLUDES=
$PREFIX
/include"
CMAKE_FLAGS+
=
" -DFFTW_LIBRARY=
$PREFIX
/lib/libfftw3f.so"
CMAKE_FLAGS+
=
" -DFFTW_LIBRARY=
$PREFIX
/lib/libfftw3f.so"
CMAKE_FLAGS+
=
" -DFFTW_THREADS_LIBRARY=
$PREFIX
/lib/libfftw3f_threads.so"
CMAKE_FLAGS+
=
" -DFFTW_THREADS_LIBRARY=
$PREFIX
/lib/libfftw3f_threads.so"
...
@@ -40,10 +40,9 @@ make install
...
@@ -40,10 +40,9 @@ make install
# Install Python wrappers.
# Install Python wrappers.
export
OPENMM_INCLUDE_PATH
=
$INSTALL
/include
export
OPENMM_INCLUDE_PATH
=
$INSTALL
/include
export
OPENMM_LIB_PATH
=
$INSTALL
/lib
export
OPENMM_LIB_PATH
=
$INSTALL
/lib
export
PYTHON
=
$HOME
/miniconda/bin/python
cd
python
cd
python
$PYTHON
setup.py
install
--prefix
=
$INSTALL
$PYTHON
setup.py
install
--prefix
=
$INSTALL
cd
..
cd
..
/..
# Copy all tests to bin directory so they will be distributed with install package.
# Copy all tests to bin directory so they will be distributed with install package.
#cp `find . -name "Test*" -type f -maxdepth 1` $PREFIX/bin
#cp `find . -name "Test*" -type f -maxdepth 1` $PREFIX/bin
devtools/packaging/scripts/osx/prepare.sh
0 → 100755
View file @
db166090
#!/bin/tcsh
# Prepare for build by ensuring necessary prerequisites are locally installed.
# Install miniconda
export
VERSION
=
"3.7.0"
export
PLATFORM
=
"MacOSX"
export
ARCH
=
"x86_64"
export
MINICONDA
=
"Miniconda-
$VERSION
-
$PLATFORM
-
$ARCH
.sh"
if
[
-f
$MINICONDA
]
;
then
echo
"File
$MINICONDA
exists, not downloading."
export
PATH
=
$WORKSPACE
/miniconda/bin:
$PATH
else
echo
"Downloading miniconda..."
wget http://repo.continuum.io/miniconda/
${
MINICONDA
}
bash
${
MINICONDA
}
-b
-p
miniconda
PIP_ARGS
=
"-U"
export
PATH
=
$WORKSPACE
/miniconda/bin:
$PATH
conda config
--add
channels http://conda.binstar.org/omnia
conda
install
--yes
--quiet
swig fftw3f pip
pip
install
sphinxcontrib-bibtex
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment