Bläddra i källkod

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 11 år sedan
förälder
incheckning
229d6f2f38
3 ändrade filer med 32 tillägg och 40 borttagningar
  1. 25
    32
      .travis.yml
  2. 4
    5
      Makefile
  3. 3
    3
      tox.ini

+ 25
- 32
.travis.yml Visa fil

1
 language: python
1
 language: python
2
 
2
 
3
 python:
3
 python:
4
-  - '2.7'
5
-  - '3.3'
6
-  - '3.4'
4
+    - '2.7'
5
+    - '3.3'
6
+    - '3.4'
7
 
7
 
8
 env:
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 Visa fil

79
 	pip install -r requirements_vagrant.txt
79
 	pip install -r requirements_vagrant.txt
80
 	cd sites/sandbox && ./test_migrations.sh
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
 messages:
87
 messages:
89
 	# Create the .po files used for i18n
88
 	# Create the .po files used for i18n

+ 3
- 3
tox.ini Visa fil

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

Laddar…
Avbryt
Spara