You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DevOps-Bash-tools/bitbucket-pipelines.yml

30 lines
945 B
YAML

#
# Author: Hari Sekhon
# Date: 2020-02-24 17:08:57 +0000 (Mon, 24 Feb 2020)
#
# vim:ts=4:sts=4:sw=4:et
#
# https://github.com/harisekhon/bash-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/harisekhon
#
# https://confluence.atlassian.com/x/5Q4SMw
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: atlassian/default-image:2
pipelines:
default:
- step:
script: |
for x in `seq 10`; do sudo apt update -q && break; [ "$x" = 10 ] && exit 1; sleep 60; done &&
for x in `seq 10`; do sudo apt install -qy git make && break; [ "$x" = 10 ] && exit 1; sleep 60; done &&
make init &&
make ci test