.gitlab-ci.yml 3.22 KB
Newer Older
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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
stages:
  - lint
  - test
  - build
  - deploy

py27-django18:
  image: python:2.7
  stage: test
  before_script:
  - pip install tox
  script: tox -e py27-django18

py34-django18:
  image: python:3.4
  stage: test
  before_script:
  - pip install tox
  script: tox -e py34-django18

py35-django18:
  image: python:3.5
  stage: test
  before_script:
  - pip install tox
  script: tox -e py35-django18

py36-django18:
  image: python:3.6
  stage: test
  before_script:
  - pip install tox
  script: tox -e py36-django18

py37-django18:
  image: python:3.7-rc-stretch
  stage: test
  before_script:
  - pip install tox
  script: tox -e py37-dev-django18






py27-django19:
  image: python:2.7
  stage: test
  before_script:
  - pip install tox
  script: tox -e py27-django19

py34-django19:
  image: python:3.4
  stage: test
  before_script:
  - pip install tox
  script: tox -e py34-django19

py35-django19:
  image: python:3.5
  stage: test
  before_script:
  - pip install tox
  script: tox -e py35-django19

py36-django19:
  image: python:3.6
  stage: test
  before_script:
  - pip install tox
  script: tox -e py36-django19

py37-django19:
  image: python:3.7-rc-stretch
  stage: test
  before_script:
  - pip install tox
  script: tox -e py37-dev-django19





py27-django110:
  image: python:2.7
  stage: test
  before_script:
  - pip install tox
  script: tox -e py27-django110

py34-django110:
  image: python:3.4
  stage: test
  before_script:
  - pip install tox
  script: tox -e py34-django110

py35-django110:
  image: python:3.5
  stage: test
  before_script:
  - pip install tox
  script: tox -e py35-django110

py36-django110:
  image: python:3.6
  stage: test
  before_script:
  - pip install tox
  script: tox -e py36-django110

py37-django110:
  image: python:3.7-rc-stretch
  stage: test
  before_script:
  - pip install tox
  script: tox -e py37-dev-django110







py27-django111:
  image: python:2.7
  stage: test
  before_script:
  - pip install tox
  script: tox -e py27-django111

py34-django111:
  image: python:3.4
  stage: test
  before_script:
  - pip install tox
  script: tox -e py34-django111

py35-django111:
  image: python:3.5
  stage: test
  before_script:
  - pip install tox
  script: tox -e py35-django111

py36-django111:
  image: python:3.6
  stage: test
  before_script:
  - pip install tox
  script: tox -e py36-django111

py37-django111:
  image: python:3.7-rc-stretch
  stage: test
  before_script:
  - pip install tox
  script: tox -e py37-dev-django111















safety:
  stage: lint
178 179
  before_script:
  - pip install tox
180 181 182 183 184
  script: tox -e safety
  allow_failure: true

style:
  stage: lint
185 186
  before_script:
  - pip install tox
187 188 189 190 191
  script: tox -e style
  allow_failure: true

docs:
  stage: lint
192 193
  before_script:
  - pip install tox
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
  script: tox -e docs
  allow_failure: true




build:
  image: docker:latest
  services:
    - docker:dind
  stage: build
  script: echo "Build Docker images"

deploy_staging:
  stage: deploy
  script:
    - echo "Deploy to staging server"
  environment:
    name: staging
    url: https://staging.example.com
  only:
    - master

deploy_prod:
  stage: deploy
  script:
    - echo "Deploy to production server"
  environment:
    name: production
    url: https://example.com
  when: manual
  only:
    - master