Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyGriffin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
neams-workbench
PyGriffin
Commits
a8f9f44f
Commit
a8f9f44f
authored
3 years ago
by
Patrick Shriwise
Browse files
Options
Downloads
Patches
Plain Diff
Adding build script for hit. Updating CI yaml. Adding setup.py file.
parent
f21be9b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+12
-9
12 additions, 9 deletions
.gitlab-ci.yml
scripts/ci/build_hit.sh
+18
-0
18 additions, 0 deletions
scripts/ci/build_hit.sh
setup.py
+19
-0
19 additions, 0 deletions
setup.py
with
49 additions
and
9 deletions
.gitlab-ci.yml
+
12
−
9
View file @
a8f9f44f
...
...
@@ -5,18 +5,21 @@ default:
-
pygriffin
stages
:
-
configure
-
build
-
build_hit
-
test
configure-job
:
stage
:
configure
build
:
stage
:
build
script
:
-
echo "Compiling the code..."
-
echo "Compile complete."
-
pip install .[test]
unit-test-job
:
build_hit
:
stage
:
build_it
script
:
-
./scripts/build_hit.sh
test
:
stage
:
test
script
:
-
echo "Running unit tests... This will take about 60 seconds."
-
sleep
10
-
echo "Code coverage is 90%"
-
pytest -v ./tests
This diff is collapsed.
Click to expand it.
scripts/ci/build_hit.sh
0 → 100755
+
18
−
0
View file @
a8f9f44f
#!/usr/bin/env bash
# exit on error from command
set
-e
script_dir
=
`
dirname
$0
`
# move to the top of the pygriffin repository
cd
$script_dir
/..
# check out the MOOSE repository
git submodule update
--init
--recursive
# build hit library
cd
vendor/moose/framework/contrib/hit
make hit hit.so
This diff is collapsed.
Click to expand it.
setup.py
0 → 100644
+
19
−
0
View file @
a8f9f44f
#!/usr/bin/env python
from
setuptools
import
setup
,
find_packages
kwargs
=
{
'
name
'
:
'
pygriffin
'
,
'
version
'
:
'
0.0.1
'
,
'
packages
'
:
find_packages
(
exclude
=
[
'
tests*
'
]),
'
author
'
:
'
Argonne National Laboratory
'
,
'
author_email
'
:
'
nstauff@anl.gov
'
,
'
download_url
'
:
'
https://git-out.gss.anl.gov/nstauff/pygriffin
'
,
'
python_requires
'
:
'
>=3.6
'
,
'
install_requires
'
:
[
'
numpy
'
],
'
extras_require
'
:
{
'
test
'
:
[
'
pytest
'
]
}
}
setup
(
**
kwargs
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment