-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
22 lines (22 loc) · 1.35 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
language: python
python:
- '3.7'
install:
- pip install -r requirements.txt
- pip install -r obs/api/requirements.txt
- pip install -r requirements-dev.txt
- pip install -e .
script:
- black --check .
- pytest -vv -s
- echo "$DOCKERHUB_PULL_PASSWORD" | docker login --username "$DOCKERHUB_PULL_USERNAME" --password-stdin
- docker run -it -v $PWD:/usr/src sonarsource/sonar-scanner-cli sonar-scanner -Dsonar.projectKey=neo-obs -Dsonar.sources=. -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_TOKEN
before_deploy: awk 'NR>23' README.rst > README.tmp && mv README.tmp README.rst
deploy:
provider: pypi
user: biznetgio
password:
secure: GRsVWTvvqxQBhV65KiVdW75mfhUzfSydnwPxd0npYGofCKL4eO6wumAnZ1w/cywrk2wJdVzuqgfZAjTnrXLXOzZqKKjuVlvT0P4Oq8JOInAlY5ESP2z9GxczigK6s6bPEU8N3t+vV2tZJoa/hOFWnDU/Esbnrrddc8P9DefOqkM+EX/5xURJp/ngPErrI1Y0SiJGcp9rINljc2ZrUQ5BDrAzmkDKCLapewBZTmvEC8g0psBGRuRUFwHyh3S93W7FWjhAXosknfipOxIsr9zhscLUliKsP1zQ+ylUNQvDlQ+0eJTO86kZeWzcOqItVjUZwyubuMgUcWOCsbPH/bTFDJ9Niz0SsPPtbBEvt8zsmc6M+kZRbut6Epo70UJxiZV4c8+EJhIHoaGbaDjgmMgT+HCSX2M1XgmdYlamFHNHhOZcYQsYMPjvBguiEHaP+a6K/PzAewnOJYzlUpqEIJuDjCzAB54tlELKk3RNbixQ5UzheiPOfT8Jn0HLZvzPaR0faOhBYoXQ8M4Sfj/jmO/iJrLrawg4vH6BhmO61Zxw3ntW9oEtMI0+YIkmyk2HP8r23bqBBbvV0KGYo+beaolYRzQ96v4z/C1bPJS0QyGlZqmiahceeOqV322JEwHU89tjHR35NIesHrtEdnTsUHZptMirINWW59W6f8H/g2HZlzo=
skip_cleanup: true
on:
tags: true