Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add config for Travis CI

Patryk Zawadzkiea5dba252cc7
diff --git a/.gitignore b/.gitignore
index 4a52afe0bc..c8aec6f250 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
*.py[cod]
-!.gitignore
.*
+!.gitignore
+!.travis*
*.log
*.pot
*.pyc
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000..05dc5fd87a
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,9 @@
+language: python
+python:
+ - 2.6
+ - 2.7
+install:
+ - python setup.py install
+script:
+ - export DJANGO_SETTINGS_MODULE=saleor.test_settings
+ - python setup.py test
diff --git a/cart/models.py b/cart/models.py
index e69de29bb2..40a96afc6f 100644
--- a/cart/models.py
+++ b/cart/models.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-
diff --git a/saleor/test_settings.py b/saleor/test_settings.py
new file mode 100644
index 0000000000..fe2ede3c4f
--- /dev/null
+++ b/saleor/test_settings.py
@@ -0,0 +1,3 @@
+from .settings import *
+
+SECRET_KEY = 'NOTREALLY'