Skip to content

Commit 0993d44

Browse files
committed
add travis CI file.
1 parent f1d1a82 commit 0993d44

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
sudo: required
2+
dist: trusty
3+
language: python
4+
5+
python:
6+
- "3.5"
7+
8+
before_install:
9+
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
10+
- sudo apt-get -qq -y update
11+
12+
install:
13+
- sudo apt-get install -y git
14+
# - sudo apt-get install -y qt5-default qtbase5-private-dev
15+
- sudo apt-get install -y python3-pyqt5 python3-pip
16+
- sudo apt-get install -y nodejs
17+
# - sudo apt-get install -y
18+
- /usr/bin/pip3 -V
19+
- yes | sudo /usr/bin/pip3 install qiniu sleekxmpp PyExecJS pycurl python-magic html2text
20+
21+
script:
22+
- /usr/bin/python3 tests/tests.py

tests/tests.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from PyQt5.QtCore import *
2+
from PyQt5.QtGui import *
3+
from PyQt5.QtWidgets import *
4+
from PyQt5.QtNetwork import *
5+
from PyQt5.QtDBus import *
6+
7+
import qiniu
8+
9+
print('success')

0 commit comments

Comments
 (0)