mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-06 15:20:36 +00:00
5f2d3b3c1c
Changes: 1. Adds `after_deploy` hook in travis.yml file 2. Adds `.ci/after_deploy.sh` script to trigger metadata calculation Closes #89
81 lines
2.0 KiB
YAML
81 lines
2.0 KiB
YAML
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- os: linux
|
|
env: GITSECRET_DIST="make"; DOCKER_DIST="debian"
|
|
services: docker
|
|
sudo: required
|
|
language: ruby
|
|
- os: linux
|
|
env: GITSECRET_DIST="deb"; DOCKER_DIST="debian";
|
|
services: docker
|
|
sudo: required
|
|
language: ruby
|
|
- os: linux
|
|
env: GITSECRET_DIST="deb"; DOCKER_DIST="ubuntu"
|
|
services: docker
|
|
sudo: required
|
|
language: ruby
|
|
- os: linux
|
|
env: GITSECRET_DIST="rpm"; DOCKER_DIST="fedora"
|
|
services: docker
|
|
sudo: required
|
|
language: ruby
|
|
- os: linux
|
|
env: GITSECRET_DIST="none"; GITSECRET_GPG_DEP="gnupg"; SECRETS_GPG_COMMAND="gpg"
|
|
sudo: false
|
|
language: ruby
|
|
- os: linux
|
|
env: GITSECRET_DIST="none"; GITSECRET_GPG_DEP="gnupg2"; SECRETS_GPG_COMMAND="gpg2"
|
|
sudo: required
|
|
language: ruby
|
|
- os: linux
|
|
env: GITSECRET_DIST="shellcheck"
|
|
sudo: required
|
|
language: ruby
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- debian-sid
|
|
packages:
|
|
- shellcheck
|
|
- os: osx
|
|
env: GITSECRET_DIST="brew"; GITSECRET_GPG_DEP="gnupg2"; SECRETS_GPG_COMMAND="gpg2"
|
|
sudo: false
|
|
language: generic
|
|
|
|
before_script:
|
|
- chmod +x ".ci/before_script.sh" && ".ci/before_script.sh"
|
|
|
|
script:
|
|
- chmod +x ".ci/script.sh" && ".ci/script.sh"
|
|
|
|
before_deploy:
|
|
- chmod +x ".ci/before_deploy.sh" && ".ci/before_deploy.sh"
|
|
|
|
deploy:
|
|
- provider: bintray
|
|
on:
|
|
branch: master
|
|
condition: "$GITSECRET_DIST == deb"
|
|
file: "build/deb_descriptor.json"
|
|
user: "sobolevn"
|
|
key: "$BINTRAY_API_KEY"
|
|
passphrase: "$BINTRAY_GPG_PASS"
|
|
- provider: bintray
|
|
on:
|
|
branch: master
|
|
condition: "$GITSECRET_DIST == rpm"
|
|
file: "build/rpm_descriptor.json"
|
|
user: "sobolevn"
|
|
key: "$BINTRAY_API_KEY"
|
|
passphrase: "$BINTRAY_GPG_PASS"
|
|
|
|
after_deploy:
|
|
- chmod +x ".ci/after_deploy.sh" && ".ci/after_deploy.sh"
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|
|
on_failure: change
|