summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 6b76ffba8c424e2d3214c43f2ac08f6298bfaea8 (plain)
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
language: python
python:
  - "2.6"
  - "2.7"
  - "3.2"
  - "3.3"
  - "3.4"
  - "pypy"
env:
  matrix:
    - DJANGO=Django==1.4.15
    - DJANGO=Django==1.5.10
    - DJANGO=Django==1.6.7
    - DJANGO=Django==1.7
    - 'DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
  global:
    - 'PIP_DOWNLOAD_CACHE=".pip_download_cache"'
    - 'WAD_FILES="package.json,Makefile,setup.py"'
    - 'WAD_INSTALL_COMMAND=ci/setup'

    # This should be specified with:
    # travis encrypt S3_BUCKET_NAME=secretvalue S3_CREDENTIALS=accesskey:secretkey
    # - S3_BUCKET_NAME=
    # - S3_CREDENTIALS=
    - secure: "QEFKt0HhaMlCW0FCLTz3NDY/P4UuVl1Pw8kSUVKKjbaKn2jZdaLKS68yl3Vyrd9AqrBfRNNLBAnvpZjYL6EwqqnZzpRH3KnAf0WRxE6d5ytrUkwZtOnQaN0Tumuqc3xnoXXalPXvs+abhXZpjfOzx0oPBa2WbtMF/RJZ/bwsTKE="
before_install:
  # Use closer nameservers
  - printf "nameserver 199.91.168.70\nnameserver 199.91.168.71\n" | sudo tee /etc/resolv.conf

  # These need to be here and not in the env hash because they need to be
  # evaluated after the virtualenv has been setup
  - mkdir -p $PIP_DOWNLOAD_CACHE
  - 'export WAD_ENVIRONMENT_VARIABLES="TRAVIS_PYTHON_VERSION,TRAVIS_NODE_VERSION,WAD_CACHE_PATH"'
  - 'export WAD_CACHE_PATH="node_modules,$PIP_DOWNLOAD_CACHE,$VIRTUAL_ENV"'
install:
  - time ci/wad
script:
  - "if [[ ${TRAVIS_PYTHON_VERSION} != 'pypy' ]]; then make lint; fi"
  - py.test tests/ --cov raven --cov-report term-missing
notifications:
  irc:
    channels: "irc.freenode.org#sentry"
    on_success: change
    on_failure: change
matrix:
  allow_failures:
    - env: 'DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
  exclude:
    - python: "3.2"
      env: DJANGO=Django==1.4.15
    - python: "3.3"
      env: DJANGO=Django==1.4.15
    - python: "3.4"
      env: DJANGO=Django==1.4.15
    - python: "2.6"
      env: DJANGO="-e git+git://github.com/django/django.git#egg=Django"
    - python: "2.6"
      env: DJANGO=Django==1.7