-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 901 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
30
31
language: python
python:
- "2.6"
- "2.7"
before_install:
- sudo apt-get update
- sudo apt-get install redis-server
- sudo apt-get install libevent-dev liblzma-dev libssl-dev
- sudo apt-get install swig
install:
## This below should be separated when core lives elsewhere
# Install core tests reqs
- pip install -rdepends/docker-registry-core/requirements/test.txt
- pip install -rdepends/docker-registry-core/requirements/style.txt
# Install core itself
- pip install depends/docker-registry-core/
# Install our tests requirements, and ourselves
- pip install -r requirements/test.txt
- pip install .
before_script:
- redis-server &
script:
- SETTINGS_FLAVOR=test DOCKER_REGISTRY_CONFIG=config_sample.yml flake8
- SETTINGS_FLAVOR=test DOCKER_REGISTRY_CONFIG=config_sample.yml python setup.py nosetests
- cd depends/docker-registry-core && python setup.py nosetests