forked from microsoft/mssql-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
37 lines (31 loc) · 1.41 KB
/
appveyor.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
version: '{build}'
environment:
mssql_jdbc_test_connection_properties: jdbc:sqlserver://localhost:1433;instanceName=SQL2016;databaseName=master;username=sa;password=Password12!;
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
services:
- mssql2016
install:
- ps: Write-Host 'Installing JCE with powershell'
- ps: cd AppVeyorJCE
- ps: choco pack
- ps: choco install jce -fdv -s . -y -failonstderr
- ps: cd..
- ps: mkdir AE_Certificates
- ps: cd AE_Certificates
- ps: $cert = New-SelfSignedCertificate -dns "AlwaysEncryptedCert" -CertStoreLocation Cert:CurrentUser\My
- ps: $pwd = ConvertTo-SecureString -String "password" -Force -AsPlainText
- ps: $path = 'cert:\CurrentUser\My\' + $cert.thumbprint
- ps: $certificate = Export-PfxCertificate -cert $path -FilePath cert.pfx -Password $pwd
- ps: Get-ChildItem -path cert:\CurrentUser\My > certificate.txt
cache:
- C:\Users\appveyor\.m2 -> pom.xml
build_script:
- keytool -importkeystore -srckeystore cert.pfx -srcstoretype pkcs12 -destkeystore clientcert.jks -deststoretype JKS -srcstorepass password -deststorepass password
- keytool -list -v -keystore clientcert.jks -storepass "password" > JavaKeyStore.txt
- cd..
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild41
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild42
test_script:
- mvn test -B -Pbuild41
- mvn test -B -Pbuild42