Skip to content

Commit

Permalink
test travis-ci for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hustlei committed Oct 22, 2019
1 parent 5c45acd commit 7e8941b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ jobs:
sudo: required
dist: bionic
python:
- 3.8
- 3.7
before_install:
# - sudo apt-get -qq update
# - sudo apt-get
- sudo apt-get -qq update
- sudo apt-get -y -qq install python3
# - sudo apt-get -y install python3-pyqt5 -qq
- python --version
- pip3 install -U pip
Expand Down Expand Up @@ -40,7 +41,7 @@ install:
- pip3 install -U pytest
- pip3 install -U pytest-qt

script: py.test || python3 -m pytest # pytest command won't be found on osx
script: pytest || python3 -m pytest # pytest command won't be found on osx
# 'python' points to Python 2.7 on macOS but points to Python 3.7 on Linux and Windows
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
#- python3 app.py || py app.py
Expand Down
8 changes: 6 additions & 2 deletions ui/editor/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "3rdparty.zip"))
print(__file__)
import chardet
try:
import chardet
except:
import zipimport
importer = zipimport.zipimporter(os.path.join(os.path.dirname(__file__), "3rdparty.zip"))
chardet = importer.load_module('chardet')

from ui.editor.lexer import QsciLexerQSS
from .settings import *
Expand Down

0 comments on commit 7e8941b

Please sign in to comment.