forked from datastax/cpp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yaml
57 lines (52 loc) · 1.74 KB
/
build.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
schedules:
adhoc:
schedule: adhoc
notify:
slack: cpp-driver-dev-bots
commit:
schedule: per_commit
notify:
slack: cpp-driver-dev-bots
branches:
include: ["/CPP-\\d+/", "master"]
architecture:
- x64
os:
- ubuntu/bionic64/cpp
- ubuntu/trusty64/cpp
- ubuntu/xenial64
- centos/6-64
- centos/7-64
- osx/high-sierra
env:
LIBUV_VERSION: 1.24.0
build:
- script: |
. .build.sh
configure_environment
install_dependencies
build_driver 'CASS'
FUNCTIONS+=($(grep -Eoh '^cass_\s*(\w+)\s*\(' include/cassandra.h | awk -F '(' '{print $1}'))
check_driver_exports 'build/libcassandra_static.a' "${FUNCTIONS[@]}"
build/cassandra-unit-tests --gtest_output=xml:cassandra-unit-test-results.xml
install_driver
test_installed_driver 'cassandra'
- xunit:
- "*unit-test-results.xml"
package:
allow_empty: true
include: # list of files and glob paths to include in the artifact, relative to the current working directory
- packaging/packages/*
release:
matrix:
exclude:
- os: [ osx/high-sierra ]
after:
each:
- script: |
. .build.sh
DRIVER_VERSION=$(get_driver_version 'include/cassandra.h' 'CASS')
# Uploading driver packages
curl -$ARTIFACTORY_CREDS -T "{$(echo packaging/packages/cassandra-cpp-driver* | tr ' ' ',')}" "https://datastax.jfrog.io/datastax/cpp-php-drivers/cpp-driver/builds/$version/$SHA/$DISTRO/$RELEASE/cassandra/v$DRIVER_VERSION/"
# Uploading libuv packages
curl -$ARTIFACTORY_CREDS -T "{$(echo packaging/packages/libuv* | tr ' ' ',')}" "https://datastax.jfrog.io/datastax/cpp-php-drivers/cpp-driver/builds/$version/$SHA/$DISTRO/$RELEASE/dependencies/libuv/v$LIBUV_VERSION/"