This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml.in
71 lines (59 loc) · 1.89 KB
/
.travis.yml.in
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
67
68
69
70
71
{# This file compiles to .travis.yml -#}
# This file compiled from .travis.yml.in
{% if docker is defined and docker.required %}
sudo: required
{% else %}
sudo: false
{% endif %}
language: python
python:
- "{{ python.version }}"
{% if docker is defined and docker.required %}
services:
- docker
{% endif %}
{% if docker is defined and docker.required %}
env:
- BASE_DOCKER_ON_TRAVIS=true
{% endif %}
cache:
pip: true
install:
# Install Python dependencies
- python -m pip install --upgrade pip=={{ python.pip_version }}
- python -m pip install -r requirements3.txt
{% if node is defined and node.required %}
# Install Node
- nvm install {{ node.version }}
{% endif %}
{% if ruby is defined and ruby.required %}
# Install Ruby
- rvm @global do gem install bundler -v {{ ruby.bundler_version }}
- rvm install {{ ruby.version }}
- rvm use {{ ruby.version }} --default
{% endif %}
{% if docker is defined and docker.required %}
# Install Docker and Docker-Compose
- sudo add-apt-repository "deb https://apt.dockerproject.org/repo ubuntu-trusty main"
- sudo apt-get update
- apt-cache policy docker-engine
- docker version
- sudo apt-get -o Dpkg::Options::="--force-confnew" install --yes --force-yes docker-engine={{ docker.travis.version }}
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/{{ docker.travis.compose_version }}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker version
- docker-compose version
{% endif %}
# Invoke will get our other dependencies
- invoke update_dependencies
script:
{% if docker is defined and docker.required %}
- |
invoke docker_start
sleep {{ docker.travis.compose_up_delay }}
{% endif %}
- nosetests tests.fast
- nosetests
{# This comment gives us a newline at the end of the generated file #}