forked from claudyus/LXC-Web-Panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (22 loc) · 822 Bytes
/
.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
language: python
install:
- pip install flake8 fabric pytz Flask-Testing mechanize coveralls nose
- sudo add-apt-repository -y ppa:chris-lea/node.js
- sudo apt-get update -qq
- sudo apt-get install nodejs build-essential dpkg-dev
before_script:
- sudo mkdir -m 777 /etc/lwp
- cp lwp.example.conf /etc/lwp/lwp.conf
- sudo mkdir -p /var/lwp
- sudo cp lwp.db /var/lwp
- export PATH=$PATH:$TRAVIS_BUILD_DIR/tests/mock-lxc
# mock the presence of lxc-templates
- sudo mkdir -p /usr/share/lxc/templates
- sudo touch /usr/share/lxc/templates/lxc-busybox /usr/share/lxc/templates/lxc-ubuntu
script:
- flake8 --ignore=E501,E402 lwp/ bin/lwp
- fab build_assets
- ./setup.py develop
- nosetests --cover-package=lwp --with-coverage tests/*
after_success:
coveralls