Skip to content

Commit

Permalink
Ensure that .jenkins-data is in PYTHONPATH
Browse files Browse the repository at this point in the history
This is required for the daemon to be able to find and load
the dynamically generated workchain modules. For this reason
the directory in which they are written 'polish/workchains'
needs to exist with an init file. We simply add the generated
polish workchain files to the gitignore list
  • Loading branch information
sphuber committed May 4, 2018
1 parent 4aec226 commit 0d19280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ coverage/
.coverage

# Files created by Jenkins tests
.jenkins-data/polish/workchains
.jenkins-data/polish/workchains/polish*
Empty file.
3 changes: 2 additions & 1 deletion .travis-data/before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ if [ -e ~/.bashrc ] ; then source ~/.bashrc ; fi

if [[ "$TEST_TYPE" == "tests" ]]
then
# Add the .travis-data folder to the python path such that defined workchains can be found by the daemon
# Add the .travis-data and .jenkins-data folder to the python path such that defined workchains can be found by the daemon
export PYTHONPATH=${PYTHONPATH}:${TRAVIS_BUILD_DIR}/.travis-data
export PYTHONPATH=${PYTHONPATH}:${TRAVIS_BUILD_DIR}/../.jenkins-data

# Start the daemon for the correct profile
verdi -p $TEST_AIIDA_BACKEND daemon start
Expand Down

0 comments on commit 0d19280

Please sign in to comment.