summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: e37b65864dc1043e58662227185d9ccbcabe0de4 (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
language: python
sudo: false
cache:
  - pip
  - npm
  - directories:
    - $HOME/.cache/pip

addons:
  firefox: "latest"

install:
  - ./manage.sh install_geckodriver ~/drivers
  - export PATH=~/drivers:$PATH
  - ./manage.sh npm_packages
  - ./manage.sh update_dev_packages
  - pip install codecov
script:
  - ./manage.sh styles
  - ./manage.sh grunt_build
  - ./manage.sh tests
after_success:
  - ./manage.sh py_test_coverage
  - codecov

stages:
  - test
  - name: docker
    if: branch = master AND type != pull_request AND env(DOCKER_USERNAME) IS present

jobs:
  include:
    - python: "2.7"
    - python: "3.5"
    - python: "3.6"
    - stage: docker
      python: "3.6"
      git:
        depth: false
      services:
        - docker
      addons: []
      before_install: true
      install: true
      script:
        - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
        - ./manage.sh docker_build push
      after_success: true

notifications:
  irc:
    channels:
      - "irc.freenode.org#searx"
    template:
      - "%{repository}/#%{build_number}/%{branch} (%{author}): %{message} %{build_url}"
    on_success: change