aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 4f1569617aba9e7df05810ac201aa41167248b4e (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
language: rust

env:
    global:
        - PROJECT_NAME=podcast
        - RUST_BACKTRACE: full

matrix:
    include:
    - os: linux
      rust: nightly
      env: TARGET=x86_64-unknown-linux-gnu
    - os: osx
      rust: nightly
      env: TARGET=x86_64-apple-darwin

before_install:
  - export PATH="$PATH:$HOME/.cargo/bin"

install:
  - bash ci/install.sh

script:
  - bash ci/script.sh

branches:
  only:
    # Pushes and PR to the master branch
    - master
    # IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
    # is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
    - /^\d+\.\d+\.\d+.*$/

before_deploy: bash ci/before_deploy.sh
deploy:
  provider: releases
  api_key:
    secure: "TODO: add key"
  file: $PROJECT_NAME-$TRAVIS_TAG-$TARGET.tar.gz
  skip_cleanup: true
  on:
    tags: true

notifications:
  email:
on_success: never