Use sudo if building on Ubuntu

This commit is contained in:
Daniel Wang 2018-07-19 15:07:36 -04:00
parent ebae966237
commit a52c629df7
No known key found for this signature in database
GPG Key ID: 82968CE7F0EA634E
1 changed files with 2 additions and 1 deletions

View File

@ -29,8 +29,9 @@ before_install:
install:
- python3 setup.py build
- python3 setup.py install
- python3 setup.py bdist_wheel
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 setup.py install; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo python3 setup.py installs; fi
script:
- python3 -c 'import klayout.db as db; print(dir(db))'