Explorar el Código

Install Django==1.7 from PyPi for Tox and Travis

We also drop the "allow_failures" section for Pythons 3.x on Travis.
They should pass consistently now.

I've also adjusted the 'travis' make target to not install Oscar so this
can be called separately as part of the Travis build. Hence, build
errors are reported differently from tests failing.
master
David Winterbottom hace 11 años
padre
commit
229d6f2f38
Se han modificado 3 ficheros con 32 adiciones y 40 borrados
  1. 25
    32
      .travis.yml
  2. 4
    5
      Makefile
  3. 3
    3
      tox.ini

+ 25
- 32
.travis.yml Ver fichero

@@ -1,40 +1,33 @@
1 1
 language: python
2 2
 
3 3
 python:
4
-  - '2.7'
5
-  - '3.3'
6
-  - '3.4'
4
+    - '2.7'
5
+    - '3.3'
6
+    - '3.4'
7 7
 
8 8
 env:
9
-  global:
10
-    # $TRANSIFEX_PASSWORD for oscar_bot (used in transifex.sh)
11
-    secure: FuIlzEsGJiAwhaIRBmRNsq9eXmuzs25fX6BChknW4lDyVAySWMp0+Zps9Bd0JgfFYUG3Ip+OTmksYIoTUsG25ZJS9cq1IFt3QKUAN70YCI/4ZBLeIdICPEyxq+Km179+NeEXmBUug17RLMLxh3MWfO+RKUHK9yHIPNNpq0dNyoo=
12
-  matrix:
13
-    - DJANGO=Django==1.6.6
14
-    - DJANGO=https://www.djangoproject.com/download/1.7c3/tarball/#egg=Django
9
+    global:
10
+        # $TRANSIFEX_PASSWORD for oscar_bot (used in transifex.sh)
11
+        secure: FuIlzEsGJiAwhaIRBmRNsq9eXmuzs25fX6BChknW4lDyVAySWMp0+Zps9Bd0JgfFYUG3Ip+OTmksYIoTUsG25ZJS9cq1IFt3QKUAN70YCI/4ZBLeIdICPEyxq+Km179+NeEXmBUug17RLMLxh3MWfO+RKUHK9yHIPNNpq0dNyoo=
12
+    matrix:
13
+        - DJANGO=Django==1.6.6
14
+        - DJANGO=Django==1.7
15
+    install:
16
+        - make install
17
+        - easy_install $DJANGO
15 18
 
16
-matrix:
17
-  allow_failures:
18
-    - env: "DJANGO=Django==1.6.6"
19
-      python: '3.3'
20
-    - env: "DJANGO=Django==1.6.6"
21
-      python: '3.4'
19
+    before_script:
20
+        # Create testing databases for running migrations against
21
+        - mysql -e 'create database oscar_vagrant;'
22
+        - psql -c 'create database oscar_vagrant;' -U postgres
23
+        # Create database for building demo site
24
+        - psql -c 'create database oscar_demo;' -U postgres
25
+        - psql -c 'CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;' -U postgres -d oscar_demo
22 26
 
23
-install:
24
-  - easy_install $DJANGO
27
+    script:
28
+        - make travis
25 29
 
26
-before_script:
27
-    # Create testing databases for running migrations against
28
-  - mysql -e 'create database oscar_vagrant;'
29
-  - psql -c 'create database oscar_vagrant;' -U postgres
30
-    # Create database for building demo site
31
-  - psql -c 'create database oscar_demo;' -U postgres
32
-  - psql -c 'CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;' -U postgres -d oscar_demo
33
-
34
-script:
35
-  - make travis
36
-
37
-after_success:
38
-  - coveralls
39
-  # TODO: Re-enable once 0.8 final is released
40
-  # - ./transifex.sh
30
+    after_success:
31
+        - coveralls
32
+        # TODO: Re-enable once 0.8 final is released
33
+        # - ./transifex.sh

+ 4
- 5
Makefile Ver fichero

@@ -79,11 +79,10 @@ testmigrations:
79 79
 	pip install -r requirements_vagrant.txt
80 80
 	cd sites/sandbox && ./test_migrations.sh
81 81
 
82
-# It is important that this target only depends on install
83
-# (instead of upgrade) because we install Django in the .travis.yml
84
-# and upgrade would overwrite it.  We also build the sandbox as part of this target
85
-# to catch any errors that might come from that build process.
86
-travis: install lint coverage sandbox demo testmigrations
82
+# This target is run on Travis.ci. We lint, test and build the sandbox/demo sites as well 
83
+# as testing migrations apply correctly. We don't call 'install' first as that is run 
84
+# as a separate part of the Travis build process.
85
+travis: lint coverage sandbox demo testmigrations
87 86
 
88 87
 messages:
89 88
 	# Create the .po files used for i18n

+ 3
- 3
tox.ini Ver fichero

@@ -28,14 +28,14 @@ deps = -r{toxinidir}/requirements.txt
28 28
 [testenv:py27-1.7]
29 29
 basepython = python2.7
30 30
 deps = -r{toxinidir}/requirements_py2.txt
31
-       https://www.djangoproject.com/download/1.7c3/tarball/
31
+       django==1.7
32 32
 
33 33
 [testenv:py33-1.7]
34 34
 basepython = python3.3
35 35
 deps = -r{toxinidir}/requirements.txt
36
-       https://www.djangoproject.com/download/1.7c3/tarball/
36
+       django==1.7
37 37
 
38 38
 [testenv:py34-1.7]
39 39
 basepython = python3.4
40 40
 deps = -r{toxinidir}/requirements.txt
41
-       https://www.djangoproject.com/download/1.7c3/tarball/
41
+       django==1.7

Loading…
Cancelar
Guardar