Skip to content

Commit 01ff1be

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent a8f7abc commit 01ff1be

File tree

5 files changed

+75
-66
lines changed

5 files changed

+75
-66
lines changed

.travis.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<a href="https://tiledb.com"><img src="https://github.com/TileDB-Inc/TileDB/raw/dev/doc/source/_static/[email protected]" alt="TileDB logo" width="400"></a>
22

33
# TileDB-Java
4-
[![Build Status](https://travis-ci.org/TileDB-Inc/TileDB-Java.svg?branch=master)](https://travis-ci.org/TileDB-Inc/TileDB-Java)
4+
[![Build Status](https://dev.azure.com/TileDB-Inc/CI/_apis/build/status/TileDB-Inc.TileDB-Java?branchName=master)](https://dev.azure.com/TileDB-Inc/CI/_build/latest?definitionId=21&branchName=master)
55

66
`TileDB-Java` is a Java interface to the [TileDB Storage Engine](https://github.com/TileDB-Inc/TileDB).
77

azure-pipelines.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Gradle
2+
# Build your Java project and run tests with Gradle using a Gradle wrapper script.
3+
# Add steps that analyze code, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
5+
6+
trigger:
7+
branches:
8+
include:
9+
- master
10+
- release-*
11+
tags:
12+
include:
13+
- "*"
14+
15+
jobs:
16+
- job: Windows
17+
strategy:
18+
matrix:
19+
VS2019:
20+
imageName: 'windows-2019'
21+
TILEDB_S3: ON
22+
pool:
23+
vmImage: $(imageName)
24+
steps:
25+
- task: Gradle@2
26+
inputs:
27+
workingDirectory: ''
28+
gradleWrapperFile: 'gradlew.bat'
29+
gradleOptions: '-Xmx3072m'
30+
javaHomeOption: 'JDKVersion'
31+
jdkVersionOption: 'default'
32+
tasks: 'assemble test'
33+
34+
- job: Linux_OSX
35+
strategy:
36+
matrix:
37+
ubuntu_18:
38+
imageName: 'ubuntu-18.04'
39+
macOS:
40+
imageName: 'macOS-10.14'
41+
pool:
42+
vmImage: $(imageName)
43+
steps:
44+
- template: ci/tiledb-java-azure.yml

ci/tiledb-java-azure.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
steps:
2+
- bash: |
3+
set -e pipefail
4+
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
5+
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -allowUntrusted -target /
6+
condition: eq(variables['Agent.OS'], 'Darwin')
7+
displayName: 'Install system headers (OSX only)'
8+
9+
- bash: |
10+
unset SYSTEM
11+
ls
12+
./gradlew assemble
13+
./gradlew checkFormat
14+
./gradlew test
15+
displayName: 'Build and Test (Ubuntu and OSX)'
16+
17+
- bash: |
18+
set -e pipefail
19+
# Display log files if the build failed
20+
echo "Dumping log files for failed build"
21+
echo "----------------------------------"
22+
for f in $(find $BUILD_REPOSITORY_LOCALPATH -name *.log);
23+
do echo "------"
24+
echo $f
25+
echo "======"
26+
cat $f
27+
done;
28+
condition: failed() # only run this job if the build step failed
29+
displayName: "Print log files (failed build only)"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TILEDB_GIT_REPOSITORY=https://github.com/TileDB-Inc/TileDB
2-
TILEDB_GIT_TAG=2.0.0
2+
TILEDB_GIT_TAG=2.0.3
33
TILEDB_VERBOSE=OFF
44
TILEDB_S3=OFF
55
TILEDB_HDFS=OFF

0 commit comments

Comments
 (0)