-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5201d3
commit 90dd17e
Showing
6 changed files
with
67 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# pylint: disable=invalid-name | ||
############################################################################### | ||
# Copyright (c), The AiiDA-CP2K authors. # | ||
# SPDX-License-Identifier: MIT # | ||
# AiiDA-CP2K is hosted on GitHub at https://github.com/aiidateam/aiida-cp2k # | ||
# For further information on the license, see the LICENSE.txt file. # | ||
############################################################################### | ||
"""Check travis tag""" | ||
from __future__ import print_function | ||
from __future__ import absolute_import | ||
|
||
import os | ||
import sys | ||
import json | ||
|
||
a = os.getenv("TRAVIS_TAG") | ||
with open("setup.json") as fhandle: | ||
b = "v{version}".format(**json.load(fhandle)) | ||
|
||
if not a: | ||
print("TRAVIS_TAG not set") | ||
|
||
elif a != b: | ||
print("ERROR: TRAVIS_TAG and version are inconsistent: '%s' vs '%s'" % (a, b)) | ||
sys.exit(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
For pytest initialise a test database and profile | ||
""" | ||
from __future__ import absolute_import | ||
import pytest | ||
pytest_plugins = ['aiida.manage.tests.pytest_fixtures'] # pylint: disable=invalid-name | ||
|
||
|
||
@pytest.fixture(scope='function') | ||
def raspa_code(aiida_local_code_factory): # pylint: disable=unused-argument | ||
return aiida_local_code_factory("simulate", "raspa") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[pytest] | ||
python_files = test_*.py example_*.py | ||
python_functions = example_* test_* | ||
filterwarnings = | ||
ignore::DeprecationWarning:aiida: | ||
ignore::DeprecationWarning:plumpy: | ||
ignore::DeprecationWarning:django: | ||
ignore::DeprecationWarning:yaml: | ||
ignore::DeprecationWarning:pymatgen: |