espanso/.travis.yml
2019-09-20 23:50:40 +02:00

86 lines
2.1 KiB
YAML

# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
dist: trusty
language: rust
services: docker
sudo: required
env:
global:
- CRATE_NAME=espanso
matrix:
include:
- os: linux
dist: bionic
sudo: false
compiler: gcc
addons:
apt:
packages:
- libx11-dev
- libxtst-dev
env:
- BUILD_SHARED_LIBS=ON
- TARGET=i686-unknown-linux-gnu
- os: linux
dist: bionic
sudo: false
compiler: gcc
addons:
apt:
packages:
- libx11-dev
- libxtst-dev
env:
- BUILD_SHARED_LIBS=ON
- TARGET=x86_64-unknown-linux-gnu
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
before_install:
- set -e
- rustup self update
install:
- sh ci/install.sh
- source ~/.cargo/env || true
script:
- bash ci/script.sh
after_script: set +e
before_deploy:
- sh ci/before_deploy.sh
deploy:
api_key:
secure: mP97iTiIdPTis8ygHiC/OkcAcMZyNlLv9TZkhzk1GCXcw9r6zwzH7vUL1iSA2BYZTkd7hHMaESrr9n02fOOMnAg0nI17K4V2E8ShOIBR1/OjbFI77CrJxKimc0+kVWf3gdhFxBS6UqO49276Qu9iD5icvH8BI08N/z6JX+EY7JM9vojZpHFoFvuhp/wbdebMX7qHrXxL3nvivcfE8OkX7O191bCL9RYHLhGkxPm2F6mD35g/gH3ZGB27d7dk6JiCfyh/R5t+NJdScN+w/s6R+YD/WVFGjiAUmxy1eFZD7hGj01pzGCfKZMocFMi9c4+pr3q/vyn6IpDU8k+b22hxDZou4d7+S9imVKjdmwms19DYrr72IzcaUjkd9UnH/e7AXO/wCtgiXgPyzS4nN69g6vR0X+ar6LSNvIj+fROXk5F+ueuiIwcsrFb9bGsAbuwpJHxiqoT3Ze0/IkOYX1lHm08cakFCrMCbVlmXQfV+LBpI9N07XK1w4CGiw/jOy4AcGw+b45YJkDlJaVAOyW3bap+7vhb/2IMdUJ0vRDTn9Ake5x1frubKzmxWv40vDtZ4jZhVNCyupU/+QV/B+DmRM+zh+E7QZ/sEskmqIzVwU1NWXgZ+v8BFRs2zAHyD9IsOxs5oefR9Wa2tDjenlRdfikRX3RjhBwrdaOhXg0y3E9M=
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
condition: $TRAVIS_RUST_VERSION = stable
tags: true
provider: releases
skip_cleanup: true
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
branches:
only:
# release tags
- /^v\d+\.\d+\.\d+.*$/
- master
notifications:
email:
on_success: never