Skip to content
Snippets Groups Projects
Commit a8f9f44f authored by Patrick Shriwise's avatar Patrick Shriwise
Browse files

Adding build script for hit. Updating CI yaml. Adding setup.py file.

parent f21be9b7
No related branches found
No related tags found
No related merge requests found
...@@ -5,18 +5,21 @@ default: ...@@ -5,18 +5,21 @@ default:
- pygriffin - pygriffin
stages: stages:
- configure - build
- build_hit
- test - test
configure-job: build:
stage: configure stage: build
script: script:
- echo "Compiling the code..." - pip install .[test]
- echo "Compile complete."
unit-test-job: build_hit:
stage: build_it
script:
- ./scripts/build_hit.sh
test:
stage: test stage: test
script: script:
- echo "Running unit tests... This will take about 60 seconds." - pytest -v ./tests
- sleep 10
- echo "Code coverage is 90%"
#!/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
setup.py 0 → 100644
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment