-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
39 lines (38 loc) · 1.64 KB
/
.travis.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
language: python
python:
- '3.7'
dist: focal
install:
- pip install pipenv==2022.1.8
- pipenv install setuptools==60.5.0
- pipenv install --dev --skip-lock
script:
- pipenv run tests
jobs:
include:
- python: '3.7'
sudo: true
- stage: sonarcloud
if: tag IS NOT present
addons:
sonarcloud:
organization: transbankdevelopers
script:
- pipenv run citests
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java 17.0.10-ms
- sdk use java 17.0.10-ms
- sonar-scanner -Dsonar.projectKey=transbank-sdk-python -Dsonar.projectName="Transbank
Python SDK" -Dsonar.organization=transbankdevelopers -Dsonar.host.url=https://sonarcloud.io
-Dsonar.sources=./transbank -Dsonar.python.coverage.reportPaths=coverage.xml
- stage: deploy
if: tag IS present
script: skip
deploy:
provider: pypi
user: __token__
password:
secure: E9rUEcv+Nrb5anYpPM6+thpvSeu41ar4LcZQyXx7B6H0DSf8OknawIklQ/ELZGU4+BWs3k8HTHiqYe3DWZai+qr0tGYa6pyeYLklJaqWs0uj4/b6I4NTII9jnr1CjTy/wi25M2tzfwBUhDXu3t2KadgKgUlunL2fuS/NYmTIQ2tyCvXD81Y2T88elES2vowsVVtRVNUTASjfNElTj8yvv5VrjDFqRRkNPz30E0F+GXSe30tjBTQOVwykXnlf3mWo72/DqDoG3691Cf2ipPC7xY2IGA8D5Fik+9usmDfY4vmNdaQl3ZPyDwUpTB6MZFzVPYMr4bGPrjyR/U0BG9xkqZBgFXU5W/HjGXcco9dQrAcI21ISJ0EF7OHXOEuqyUdakrGCQq33tyxQ5mRRuYnG06s31ZmJgKbHYujvusQsjKvaFOhzTgUj0fnFk/LGO11ADevBYx/kGFs2D9DpfF4CzJmSpfqPMxIyhqyVqF+BsH6sIGlL1is05zO69dZWZScbxomU68l2fd1wgYa67GoMT+bbHDVxjuJ0I8C38oUvo2SjO/s1iL/7o0fCjNnBiNc8OBQfTRbIdfNF30vtxZKRdy6dkd2/MyuHdyFFU7xIqQXX5KeYCBtR77WiXm6tHWoBWcd7iFgMpIrN7OadGyzihsUw7ewTdyr4+cDP1l4BP/E=
on:
tags: true