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
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -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
+18 −0
Original line number Diff line number Diff line
#!/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
+19 −0
Original line number Diff line number Diff line
#!/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