Skip to content
Permalink
Browse files

travis switched from "python" defaulting to 2.7 to 3.6

added language to travis.yml
  • Loading branch information
robnagler committed Apr 16, 2019
1 parent 7820128 commit b13ec5cfcc46e01c40c5ee1d6e98c74eec55f1e5
Showing with 4 additions and 5 deletions.
  1. +3 −1 .travis.yml
  2. +1 −4 tests/pksetup_test.py
@@ -1,11 +1,13 @@
---
language: python
python:
- "2.7"
branches:
only:
- master
#TODO: this script could be pulled dynamically
install:
- pip install -U pip
- pip install -U pip setuptools
script:
# This installs dependencies, which installs tox, sphinx, twine
- pip install -e .
@@ -39,12 +39,9 @@ def test_build_clean():
['tests', 'mod2_test.py'],
)
check_call(['python', 'setup.py', 'build'])
import subprocess
x = subprocess.check_output(['ls', '-alR'])
dat = os.path.join('build', 'lib', 'pksetupunit1', 'package_data', 'data1')
assert os.path.exists(dat), \
x
# 'When building, package_data should be installed in lib'
'When building, package_data should be installed in lib'
bin_dir = 'scripts-{}.{}'.format(*(sys.version_info[0:2]))
check_call(['python', 'setup.py', 'test'])
assert os.path.exists('tests/mod2_test.py')

0 comments on commit b13ec5c

Please sign in to comment.
You can’t perform that action at this time.