forked from nilovna/EnceFAL
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
52 lines (43 loc) · 1.23 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# voir "https://docs.travis-ci.com/user/customizing-the-build/"
# "https://docs.travis-ci.com/user/languages/python"
# "https://github.com/getsentry/sentry/blob/master/.travis.yml"
# "https://github.com/jpvanhal/flask-split/blob/master/.travis.yml"
# Pour plus d'infos relativement a la construction du document
# 1- language du projet
# ex : language: python
language: python
# 2- version du language
# note : la version par defaut de python est 2.7
python:
- 2.6
- 2.7
- 3.4
- pypy
env:
- DJANGO_VERSION=1.9.6
#a executer avant l'installation
before_install:
- pyclean .
- sudo pip install virtualenv
- virtualenv env
# 4- install addons
# install: ./[Script a executer]
install:
- sudo env/bin/pip install -r requirements.txt
# After installing
before_script:
- cd django/EnceFAL
- cp conf.py.edit conf.py
- cd ..
- cd ..
- env/bin/python django/manage.py makemigrations
- env/bin/python django/manage.py migrate
# 5- script de test
# script: [quoi executer]
# ex: script: nosetests
# ex2: script: make test
# note: si script est absent du fichier => message d'erreur + fail du build
script:
- env/bin/coverage run --omit=env/*,*.virtualenv*,*virtualenv* django/manage.py test main employee
after_success:
- env/bin/coveralls