Browse Source

add travis file

Guénaël Muller 5 years ago
parent
commit
b82ffd1178
2 changed files with 34 additions and 32 deletions
  1. 34 0
      .travis.yml
  2. 0 32
      backend/.travis.yml

+ 34 - 0
.travis.yml View File

@@ -0,0 +1,34 @@
1
+matrix:
2
+  include:
3
+    - sudo: false
4
+      language: python
5
+      python:
6
+        - "3.4"
7
+        - "3.5"
8
+        - "3.6"
9
+
10
+      addons:
11
+        apt:
12
+          packages:
13
+          - libreoffice
14
+          - imagemagick
15
+          - libmagickwand-dev
16
+          - ghostscript
17
+      services:
18
+        - docker
19
+        - redis-server
20
+
21
+      before_install:
22
+        - docker pull mailhog/mailhog
23
+        - docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog
24
+      install:
25
+        - pip install --upgrade pip setuptools
26
+        - pip install -e ".[testing]"
27
+        - pip install pytest-cov
28
+        - pip install python-coveralls
29
+
30
+      script:
31
+       - backend/py.test --cov tracim_backend
32
+
33
+      after_success:
34
+        - coveralls

+ 0 - 32
backend/.travis.yml View File

@@ -1,32 +0,0 @@
1
-sudo: false
2
-language: python
3
-python:
4
-  - "3.4"
5
-  - "3.5"
6
-  - "3.6"
7
-
8
-addons:
9
-  apt:
10
-    packages:
11
-    - libreoffice
12
-    - imagemagick
13
-    - libmagickwand-dev
14
-    - ghostscript
15
-services:
16
-  - docker
17
-  - redis-server
18
-
19
-before_install:
20
-  - docker pull mailhog/mailhog
21
-  - docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog
22
-install:
23
-  - pip install --upgrade pip setuptools
24
-  - pip install -e ".[testing]"
25
-  - pip install pytest-cov
26
-  - pip install python-coveralls
27
-
28
-script:
29
- - py.test --cov tracim
30
-
31
-after_success:
32
-  - coveralls