-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
36 lines (35 loc) · 1.12 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# bitbucket-pipelines.yml - Bitbucket Pipelines configuration
# Copyright (C) 2017-2019 Kaz Nishimura
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
# See <https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html>
# for details.
---
definitions:
steps:
- step: &build
name: Build
image: kazssym/cppunitx-builder:gcc
script:
- autoreconf --install
- mkdir -p _build
- cd _build
- ../configure --prefix=/opt/cppunitx
- make check
- make dist VERSION="`sh ./config.status --version | sed -n '1s/^.* config\.status //p'`-snapshot.$BITBUCKET_BUILD_NUMBER"
artifacts:
- _build/**
- step: &upload
name: Upload to Bitbucket Cloud
script:
- sh ./upload.sh _build/*.tar.*
pipelines:
branches:
master:
- step: *build
- step: *upload
pull-requests:
"**":
- step: *build