Adjust ci pipeline. (#367)
* Adjust ci pipeline. Signed-off-by: Pan Li <panli@microsoft.com>
This commit is contained in:
Родитель
3a2754b452
Коммит
a34f2cca20
16
.travis.yml
16
.travis.yml
|
@ -2,11 +2,6 @@ language: java
|
|||
jdk:
|
||||
- oraclejdk8
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python3
|
||||
|
||||
sudo: required
|
||||
install: true
|
||||
|
||||
|
@ -14,7 +9,16 @@ jobs:
|
|||
include:
|
||||
- stage: test
|
||||
script:
|
||||
- chmod +x install.sh && ./install.sh
|
||||
- sudo apt-get install python3.5 python3.5-dev
|
||||
- curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install curl apt-transport-https lsb-release gnupg
|
||||
- curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null
|
||||
- AZ_REPO=$(lsb_release -cs) && echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install azure-cli
|
||||
# - az --help
|
||||
# - chmod +x install.sh && ./install.sh
|
||||
- set -o pipefail && mvn -P travis-ci-test clean cobertura:cobertura-integration-test | grep -v "DEBUG"
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
- stage: performance-test
|
||||
|
|
|
@ -31,5 +31,5 @@ then
|
|||
fi
|
||||
|
||||
chmod 775 $install_script
|
||||
yes | python3 ./$install_script > /dev/null
|
||||
yes | /usr/bin/python3.5 ./$install_script > /dev/null
|
||||
sudo ln -sfv /home/travis/build/Microsoft/spring-data-cosmosdb/y/az /bin/az
|
||||
|
|
|
@ -24,6 +24,7 @@ goto :noSetup
|
|||
)
|
||||
|
||||
call az login --service-principal -u %clientId% -p %clientKey% --tenant %tenantId% >> null
|
||||
call az group create -l westus -n %resourcegroup% >> null
|
||||
set createcmd='az cosmosdb create --name %dbname% --resource-group %resourcegroup% --kind GlobalDocumentDB --query documentEndpoint'
|
||||
|
||||
for /f "tokens=*" %%a in (%createcmd%) do (set cosmosdburi=%%a)
|
||||
|
|
|
@ -14,6 +14,7 @@ if [ -z "$TENANT_ID" ]; then
|
|||
fi
|
||||
|
||||
az login --service-principal -u $CLIENT_ID -p $CLIENT_KEY --tenant $TENANT_ID >> tmp.txt
|
||||
az group create -l westus -n $resourcegroup 2>1 > /dev/null
|
||||
cosmosDbUri=$(az cosmosdb create --name $dbname --resource-group $resourcegroup --kind GlobalDocumentDB --query documentEndpoint)
|
||||
cosmosDbKey=$(az cosmosdb list-keys --name $dbname --resource-group $resourcegroup --query primaryMasterKey)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче