Skip to content

Commit 055772b

Browse files
committed
try fix permission in travis (non-best-practices...)
1 parent ed7df88 commit 055772b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ install:
1313
- pip install -r test-requirements.txt
1414
- python setup.py install
1515
- pip freeze
16+
# there is a issue in repo2docker in travis. fix file permission
17+
- chmod +x $(python -c "import repo2docker; print(repo2docker.__file__[:-11])")/buildpacks/repo2docker-entrypoint
1618
script:
1719
- pycodestyle --max-line-length=119 $(find ipython2cwl -name '*.py')
1820
- coverage run --source ipython2cwl -m unittest discover tests
@@ -29,6 +31,7 @@ matrix:
2931
- pip3 install virtualenv
3032
- virtualenv -p python3 venv
3133
- source venv/bin/activate
34+
- chmod +x $(python -c "import repo2docker; print(repo2docker.__file__[:-11])")/buildpacks/repo2docker-entrypoint
3235
- pip3 install -U -r test-requirements.txt
3336
script: coverage run --source ipython2cwl -m unittest discover tests
3437
env: TRAVIS_IGNORE_DOCKER=true

tests/test_system_tests.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ def test_repo2cwl(self):
2525
)
2626
self.assertListEqual(['example1.cwl'], [f for f in os.listdir(output_dir) if not f.startswith('.')])
2727

28+
with open(os.path.join(output_dir, 'example1.cwl')) as f:
29+
print(20 * '=')
30+
print('workflow file')
31+
print(f.read())
32+
print(20 * '=')
33+
2834
runtime_context = RuntimeContext()
2935
runtime_context.outdir = output_dir
3036
runtime_context.basedir = output_dir

0 commit comments

Comments
 (0)