-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (63 loc) · 2.31 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: python
python:
- "2.7"
# use pre-compiled system wide packages
# http://danielnouri.org/notes/2012/11/23/use-apt-get-to-install-python-dependencies-for-travis-ci/
virtualenv:
system_site_packages: true
# command to install system dependencies
before_script:
- sudo mkdir -p /etc/apache2/mods-available/
- sudo bash install.ubuntu.sh
- pip install --upgrade --requirement requirements.txt
# - pip install --upgrade Pillow
# - pip install --upgrade Image
# - pip install --upgrade numpy
# - pip install --upgrade scipy
# - pip install --upgrade matplotlib
# - pip install --upgrade MySQL-python
# command to install python dependencies
install:
- mkdir data
- cp config.template data/config.py
# command to run tests
script:
#no login no ssl
- python ibrowser.py data/ init
- cat data/config.py
# - python ibrowser.py data/ adduser test1 pass1
# - python ibrowser.py data/ adduser test2 pass2
# - python ibrowser.py data/ listusers
# - python ibrowser.py data/ deluser test1
# - python ibrowser.py data/ deluser test2
# - python ibrowser.py data/ clean
#with login no ssl
- python ibrowser.py data/ init
- sed -i 's/HAS_LOGIN = False/HAS_LOGIN = True/' data/config.py
- cat data/config.py
- python ibrowser.py data/ adduser test1 pass1
- python ibrowser.py data/ adduser test2 pass2
- python ibrowser.py data/ listusers
- python ibrowser.py data/ deluser test1
- python ibrowser.py data/ deluser test2
- python ibrowser.py data/ clean
#with login with ssh
- sed -i 's/USE_SSL = False/USE_SSL = True/' data/config.py
- cat data/config.py
- python ibrowser.py data/ adduser test1 pass1
- python ibrowser.py data/ adduser test2 pass2
- python ibrowser.py data/ listusers
- python ibrowser.py data/ deluser test1
- python ibrowser.py data/ deluser test2
- python ibrowser.py data/ clean
#no login with ssh
# - sed -i 's/HAS_LOGIN = True/HAS_LOGIN = False/' data/config.py
# - cat data/config.py
# - python ibrowser.py data/ adduser test1 pass1
# - python ibrowser.py data/ adduser test2 pass2
# - python ibrowser.py data/ listusers
# - python ibrowser.py data/ deluser test1
# - python ibrowser.py data/ deluser test2
# - python ibrowser.py data/ clean
# - python ibrowser.py data/ &
# - pid=$! && echo PID && sleep 60s && kill -9 $pid && true"