sudo: false
language: generic
env:
global:
- secure: GXW0WyMkipF5lh29QHMxSKl6Dpvd4Qqggu5SBGymS5KQ7VPuqgEE2A8YwQDIGf4IEZUoAcAb1W7oPwQ0/kv7omlF2S8gmals1BeGKStU1np6lIIH64B87w4RIDhD+limVAfKgWb3Oldj6PDAm8gjbWjPiZF/6oxH4hd/+d9r2GY=
- PROJECT_NAME=safe_vault
matrix:
include:
- os: linux
env: >
TARGET=x86_64-unknown-linux-gnu
PLATFORM=linux-x64
FEATURES=use-mock-crust
sudo: required
addons:
apt:
packages:
- rpm
- sshpass
- os: linux
env: >
TARGET=i686-unknown-linux-gnu
PLATFORM=linux-x86
FEATURES=use-mock-crust
ONLY_DEPLOY=1
sudo: required
addons:
apt:
packages:
- rpm
- sshpass
- os: linux
env: >
TARGET=armv7-unknown-linux-gnueabihf
PLATFORM=armv7
FEATURES=use-mock-crust
ONLY_DEPLOY=1
sudo: required
addons:
apt:
packages:
- gcc-arm-linux-gnueabihf
- libc6-armhf-cross
- libc6-dev-armhf-cross
- os: linux
env: >
CHANNEL=nightly
FEATURES="clippy use-mock-crust"
allow_failures: true
- os: osx
env: >
TARGET=x86_64-apple-darwin
PLATFORM=osx-x64
FEATURES=use-mock-crust
SKIP_SIGN_PACKAGE=1
- os: osx
env: >
CHANNEL=nightly
FEATURES="clippy use-mock-crust"
allow_failures: true
allow_failures:
- allow_failures: true
fast_finish: true
branches:
only:
- master
cache:
directories:
- $HOME/musl
- $HOME/.cargo
- $TRAVIS_BUILD_DIR/target
- $HOME/.gem
before_install:
- export PROJECT_VERSION=$(git log -1 | grep -i "version change to" | sed "s/.*[vV]ersion change to v\{0,1\}//")
- export PATH="$PATH:$HOME/.cargo/bin:$HOME/musl/bin"
- export PKG_CONFIG_ALLOW_CROSS=1
install:
- ./ci/travis/install.sh
script:
- ./ci/travis/script.sh
after_success:
- curl -sSL https://github.com/maidsafe/QA/raw/master/Bash%20Scripts/Travis/after_success.sh | bash
before_deploy:
- ./ci/travis/before_deploy.sh
deploy:
- provider: releases
api_key: ${GH_TOKEN}
file: ${PROJECT_NAME}-v${PROJECT_VERSION}-${PLATFORM}.tar.gz
skip_cleanup: true
draft: true
tag_name: ${PROJECT_VERSION}
on:
condition: >
(-n "$PROJECT_VERSION") &&
(-n "$PLATFORM") &&
("${CHANNEL:-stable}"=stable)
- provider: releases
api_key: ${GH_TOKEN}
file: ./packages/osx/${PROJECT_NAME}-${PROJECT_VERSION}.pkg
skip_cleanup: true
draft: true
tag_name: ${PROJECT_VERSION}
on:
condition: >
("$PLATFORM" = "osx-x64") &&
(-n "$PROJECT_VERSION") &&
("${CHANNEL:-stable}"=stable)
- provider: script
script: ./ci/travis/deploy_linux_packages.sh
skip_cleanup: true
on:
condition: >
(("$PLATFORM" = "linux-x64") || ("$PLATFORM" = "linux-x86")) &&
(-n "$PROJECT_VERSION") &&
("${CHANNEL:-stable}"=stable)
- provider: script
script: ./ci/travis/deploy_docker_image.sh
skip_cleanup: true
on:
condition: >
(-n "$DOCKER_IMAGE") &&
(-n "$DOCKER_EMAIL") &&
(-n "$DOCKER_USERNAME") &&
(-n "$DOCKER_PASSWORD") &&
(-n "$PROJECT_VERSION") &&
("${CHANNEL:-stable}"=stable)