forked from avocado-framework/avocado-vt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 1022 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
28
29
language: python
python:
- "2.7"
- "2.6"
sudo: false
install:
- pip install "Sphinx==1.3b1" # autotest requires Sphinx during install
- pip install -r requirements-travis.txt
- if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then AVOCADO_BRANCH=36lts; else AVOCADO_BRANCH=master; fi; git clone --depth 1 --branch $AVOCADO_BRANCH https://github.com/avocado-framework/avocado.git avocado-libs # avocado-46+ does not supports python-2.6
- cd avocado-libs
- pip install -r requirements-travis.txt
- python setup.py install
- cd ..
- rm -rf avocado-libs
script:
# Create some fake binaries to make vt-bootstrap happy
- mkdir -p /tmp/dummy_bin
- touch /tmp/dummy_bin/arping
- touch /tmp/dummy_bin/tcpdump
- chmod 777 /tmp/dummy_bin/*
- export PATH="/tmp/dummy_bin:$PATH"
# Setup Avocado-vt for functional tests
- make install
- AVOCADO_LOG_DEBUG=yes avocado vt-bootstrap --vt-skip-verify-download-assets --yes-to-all
# Run tests
- make check