-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy path.travis.yml
27 lines (23 loc) · 882 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
27
language: python
install:
- pip install -r requirements-dev.txt
- 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
- sudo mkdir -m 777 -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:
- fab build_assets
- ./setup.py develop
# test the genearation of secret file without lwp.conf
- nosetests --cover-package=lwp --with-coverage tests/utils.py
- cp lwp.example.conf /etc/lwp/lwp.conf
- fab dev_test # dev_test run all the other tests and flake8
after_success:
coveralls