Skip to content

Commit

Permalink
Merge pull request #123 from singularityhub/add/pytest-3.2.0
Browse files Browse the repository at this point in the history
testing with singularity 3.2.0
  • Loading branch information
vsoch committed Jun 3, 2019
2 parents 0085f64 + c759eba commit 3ff8985
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Expand Up @@ -13,6 +13,7 @@ workflows:
branches:
ignore: master
- test-singularity-3-1-python-3: *ignore_master
- test-singularity-3-2-python-3: *ignore_master
- test-singularity-3-python-2: *ignore_master
- test-singularity-2-python-3: *ignore_master
- test-singularity-2-python-2: *ignore_master
Expand Down Expand Up @@ -132,6 +133,29 @@ jobs:
- run: *test_spython
- run: *test_spython_3

test-singularity-3-2-python-3:
machine: true
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-py3
- run: *install_python_3
- run: *waitforapt
- singularity/install-go:
go-version: 1.11.5
- singularity/debian-install-3:
singularity-version: 3.2.0
- run: *install_spython
- run: *install_dependencies
- save_cache:
paths:
- ~/conda
key: v1-dependencies-py3
- run: *test_spython
- run: *test_spython_3

test-singularity-3-python-2:
machine: true
working_directory: ~/repo
Expand Down
4 changes: 2 additions & 2 deletions spython/tests/test_oci.py
Expand Up @@ -70,7 +70,7 @@ def test_oci(self):
print(result)
print(self.cli.version_info())

if self.cli.version_info() >= VersionInfo(3, 2, 0):
if self.cli.version_info() >= VersionInfo(3, 2, 0, "1"):
self.assertTrue(result['return_code'] == 255)
else:
self.assertTrue('bin' in result)
Expand All @@ -96,7 +96,7 @@ def test_oci(self):
self.assertEqual(state, 0)

# State was still reported as running
if self.cli.version_info() >= VersionInfo(3, 2, 0):
if self.cli.version_info() >= VersionInfo(3, 2, 0, "1"):
print('...check status of paused bundle.')
state = self.cli.oci.state(self.name, sudo=True)
self.assertEqual(state['status'], 'paused')
Expand Down

0 comments on commit 3ff8985

Please sign in to comment.