forked from Hyperledger-TWGC/GM-interoperability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
40 lines (37 loc) · 1.37 KB
/
azure-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
37
38
39
40
schedules:
- cron: "0 0 * * 0" # https://crontab.guru/#0_0_*_*_0
displayName: "Weekly Sunday build"
branches:
include:
- master
always: true
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
LTS:
goVersion: '1.13'
latest:
goVersion: '1.14'
variables:
- name: LD_LIBRARY_PATH # used for guanzhi/GmSSL
value: /usr/local/gmssl/lib
steps:
- script: cd $(Pipeline.Workspace); git clone https://github.com/guanzhi/GmSSL.git
displayName: Clone GMSSL
- script: cd $(Pipeline.Workspace)/GmSSL; SYSTEM=`uname -s` ./config --prefix=/usr/local/gmssl; make; sudo make install_sw
displayName: Config, make and install GMSSL
- script: cd $(Pipeline.Workspace); git clone https://github.com/Hyperledger-TWGC/java-gm.git
displayName: Clone java-gm
- checkout: self
- task: GoTool@0
inputs:
version: $(goVersion)
- script: cd interop; go mod vendor
- script: cd pku-gm; go mod vendor
- script: cd interop; go test util_test.go ccsExport_test.go pkuExport_test.go tjfocExport_test.go
displayName: build artifacts
- script: cd interop; go test util_test.go pkuImport_test.go tjfocImport_test.go
displayName: test on loading artifacts
- script: DIR=$PWD;cd $(Pipeline.Workspace)/java-gm; gradle build; cp -f $(Pipeline.Workspace)/java-gm/*.pem $DIR/interop/testdata; cd $DIR/interop;go test tjjavaImport_test.go
displayName: interactWithJava