unveil-rs 0.1.2-alpha1

Unveil Rs is a tool to create presentations from markdown files.
Documentation
---
language: rust

matrix:
  include:
    # Stable channel.
    - os: linux
      rust: stable
      env: TARGET=x86_64-unknown-linux-gnu

    - os: osx
      rust: stable
      env: TARGET=x86_64-apple-darwin

    # Minimum Rust supported channel.
    - os: linux
      rust: 1.40.0
      env: TARGET=x86_64-unknown-linux-gnu

    - os: osx
      rust: 1.40.0
      env: TARGET=x86_64-apple-darwin

    # Run release jobs
    - os: linux
      rust: stable
      env: TARGET=x86_64-unknown-linux-gnu DEPLOY_TARGET=github-pages
      if: tag IS present

    - os: linux
      rust: stable
      env: TARGET=x86_64-unknown-linux-gnu DEPLOY_TARGET=cargo-publish
      if: tag IS present

sudo: required

before_install:
  - ci/before_install.sh

env:
  global:
    # Default target on travis-ci.
    # Used as conditional check in the install stage
    - HOST=x86_64-unknown-linux-gnu
    - PROJECT_NAME=unveil

install:
  # prevent target re-add error from rustup
  - if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi


script:
  - ci/build.sh

before_deploy:
  - ci/before_deploy.sh

deploy:
  - provider: releases
    api_key: $GITHUB_TOKEN
    # for uploading multiple files
    file_glob: true
    file:
      - $PROJECT_NAME-$TRAVIS_TAG-$TARGET.*
      - $PROJECT_NAME*.deb
    # don't delete artifacts from previous stage
    skip_cleanup: true

    on:
      # deploy only if we push a tag
      tags: true
      # deploy only on stable channel that has TARGET env variable sets and excludes other release jobs
      condition: $DEPLOY_TARGET != cargo-publish && $DEPLOY_TARGET != github-pages

  - provider: pages
    skip_cleanup: true
    github_token: $GITHUB_TOKEN
    local_dir: demo/public
    keep_history: false
    on:
      # deploy only if we push a tag
      tags: true
      # deploy to github pages only once when targeting x86_64-unknown-linux-gnu
      condition: $DEPLOY_TARGET == github-pages

  - provider: cargo
    skip_cleanup: true
    token: $CARGO_TOKEN
    on:
      # deploy only if we push a tag
      tags: true
      # publish on crates.io only once when targeting x86_64-unknown-linux-gnu
      condition: $DEPLOY_TARGET == cargo-publish

notifications:
  email:
    on_success: never