8000 Set up CI with Azure Pipelines (#9) · sakerbuild/saker.java.compiler@c1b55de · GitHub
[go: up one dir, main page]

Skip to content

Commit c1b55de

8000 Browse files
authored
Set up CI with Azure Pipelines (#9)
* Update README.md
1 parent 8074e36 commit c1b55de

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# saker.java.compiler
22

3+
![Build status](https://img.shields.io/azure-devops/build/sakerbuild/f1251dbc-3ee1-4e43-a095-0231770283de/14/master)
4+
35
Incremental Java compiler support for the [saker.build system](https://saker.build). The project contains the implementation of performing incremental Java compilation during builds with the saker.build system. The implementation performs deep analysis of the compiled source files and can perfectly determine the dependencies of each class, therefore providing minimal rebuilds every time.
46

57
The build task also support incremental annotation processing, which can also performed concurrently, further reducing build times.

azure-pipelines.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
trigger:
2+
- master
3+
4+
pool:
5+
vmImage: 'ubuntu-latest'
6+
7+
steps:
8+
- script: curl -s https://api.nest.saker.build/bundle/download/saker.build-v0.8.0 -o saker.build.jar
9+
displayName: 'Download saker.build'
10+
- script: |
11+
set -e
12+
curl -s https://gist.githubusercontent.com/Sipkab/f71ecb5e2167a2b0fced6736d703b8a5/raw/35ab3a1d94a32a1183a05cdb2498943937326993/azure_ubuntu_jdksetup.sh -o /tmp/azure_ubuntu_jdksetup.sh
13+
echo "##vso[task.setvariable variable=JAVA_HOME_8_X64]$(bash /tmp/azure_ubuntu_jdksetup.sh 8)" &
14+
echo "##vso[task.setvariable variable=JAVA_HOME_9_X64]$(bash /tmp/azure_ubuntu_jdksetup.sh 9)" &
15+
echo "##vso[task.setvariable variable=JAVA_HOME_12_X64]$(bash /tmp/azure_ubuntu_jdksetup.sh 12)" &
16+
echo "##vso[task.setvariable variable=JAVA_HOME_13_X64]$(bash /tmp/azure_ubuntu_jdksetup.sh 13)" &
17+
wait < <(jobs -p)
18+
displayName: 'Setup JDKs'
19+
- script: java -jar saker.build.jar -bd build "-EUsaker.java.jre.install.locations=$(JAVA_HOME_8_X64);$(JAVA_HOME_9_X64);$(JAVA_HOME_12_X64);$(JAVA_HOME_13_X64)" test
20+
displayName: 'Test'
21+
- script: java -jar saker.build.jar -bd build "-EUsaker.java.jre.install.locations=$(JAVA_HOME_8_X64);$(JAVA_HOME_9_X64);$(JAVA_HOME_12_X64);$(JAVA_HOME_13_X64)" exportall
22+
displayName: 'Export'

0 commit comments

Comments
 (0)
0