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
d12c9bd1
Commit
d12c9bd1
authored
Feb 28, 2017
by
peastman
Committed by
GitHub
Feb 28, 2017
Browse files
Merge pull request #1755 from swails/ci/jenkins
Add script to build on my Jenkins machine
parents
d32d05aa
d5177294
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
devtools/ci/jenkins/install.sh
devtools/ci/jenkins/install.sh
+43
-0
No files found.
devtools/ci/jenkins/install.sh
0 → 100644
View file @
d12c9bd1
# This script is executed via the line:
# source devtools/ci/jenkins/install.sh
# in a bash shell with the -lex options turned on
echo
"Using the following SWIG (
`
which swig
`
) version:"
swig
-version
echo
"Using cmake (
`
which cmake
`
) version"
:
cmake
--version
echo
"Using clang (
`
which clang
`
) version:"
clang
--version
module load cuda conda/jenkins
# Constants
CONDAENV
=
openmm-test-3.5
INSTALL_DIRECTORY
=
"
${
WORKSPACE
}
/openmm-install"
SRC_DIRECTORY
=
"
${
WORKSPACE
}
/openmm-src"
# set in the Jenkins configuration
export
OPENMM_CUDA_COMPILER
=
`
which nvcc
`
# Create a conda environment, but clean up after one first. If it doesn't exist, don't complain.
# But since we are invoking this shell with -e (exit on all errors), we need || true to prevent this
# command from crashing the whole shell
conda remove
-yn
${
CONDAENV
}
--all
--quiet
||
true
conda create
-yn
${
CONDAENV
}
python
=
3.5
--no-default-packages
--quiet
conda
install
-yn
${
CONDAENV
}
numpy scipy pytest
--quiet
source
activate
${
CONDAENV
}
# enter our new environment
# Build OpenMM
cd
"
${
SRC_DIRECTORY
}
"
cmake
-DCMAKE_INSTALL_PREFIX
=
"
${
INSTALL_DIRECTORY
}
"
-DCMAKE_CXX_COMPILER
=
clang++
-DCMAKE_C_COMPILER
=
clang
.
make
-j4
install
make PythonInstall
# Now run the tests
python
-m
simtk.testInstallation
cd
python/tests
&&
py.test
-v
&&
cd
../..
python devtools/run-ctest.py
--job-duration
=
120
--timeout
300
# Now remove the conda environment
source
deactivate
conda remove
-yn
${
CONDAENV
}
--all
--quiet
\ No newline at end of file
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