Skip to content

Commit dfc438b

Browse files
committed
use secure token to deploy instead of insecure env vars
1 parent 762281f commit dfc438b

File tree

2 files changed

+23
-32
lines changed

2 files changed

+23
-32
lines changed

.travis.yml

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,35 @@
11
dist: xenial
22
language: python
3-
43
python:
54
- 3.6
65
- 3.7
76
- 3.8
87
- 3.8-dev
9-
108
cache: apt
11-
129
addons:
1310
chrome: stable
14-
1511
before_install:
16-
- sudo apt update
17-
# javascript dependencies
18-
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
19-
- nvm install 10.16.3
20-
- nvm use 10.16.3
21-
- npm --version
22-
# install chromebrowser
23-
- wget -N http://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip -P ~/
24-
- unzip ~/chromedriver_linux64.zip -d ~/
25-
- rm ~/chromedriver_linux64.zip
26-
- sudo mv -f ~/chromedriver /usr/bin/
27-
- sudo chmod +x /usr/bin/chromedriver
28-
12+
- sudo apt update
13+
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
14+
- nvm install 10.16.3
15+
- nvm use 10.16.3
16+
- npm --version
17+
- wget -N http://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
18+
-P ~/
19+
- unzip ~/chromedriver_linux64.zip -d ~/
20+
- rm ~/chromedriver_linux64.zip
21+
- sudo mv -f ~/chromedriver /usr/bin/
22+
- sudo chmod +x /usr/bin/chromedriver
2923
install:
30-
# Install IDOM along with test requirements
31-
- pip install -r requirements.txt
32-
- pip install -e .[all]
33-
24+
- pip install -r requirements.txt
25+
- python setup.py build
26+
- pip install .[all]
3427
script:
35-
- bash scripts/test.sh
36-
37-
jobs:
38-
include:
39-
- stage: deploy
40-
if: tag IS present AND repo = rmorshea/idom
41-
python: 3.6
42-
script:
43-
- python setup.py bdist_wheel
44-
- twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD
28+
- bash scripts/test.sh
29+
deploy:
30+
provider: pypi
31+
on:
32+
tags: true
33+
user: __token__
34+
password:
35+
secure: dpqXuLuCHKGDiu8NOv3YjKGRXj1s0HLT4+9X6vslqXBhMpB3a4IqkWmxwEq5u9Ch4Hg4pFP08zCOYDIu3bCC/7HCU8dYe8Klv1ReO63+nTF2ffQr3x/FefmzSMZfwCE2NPjEix2jypqYuGQ+1/HXGacMp9Uoa1XYhaZwo+6ggkUPVqF9Lgaae2WSJmvM9D4GeOz6p0oehDZgH8jQi8byiHeeik0CTkzwvBxL6ylMowanYiG2/St5R+iMrZNMLYvm6zS9oxJhorXUM91SuxzILy/7BWMo4iMEIuzMk5I2m9qTM311lF7Cgs5lVtxz6vH/vIPp70uuvpT1tV/TgKU78pu+ucnkH4Yy7DqXXJTl4fB23RoU8damwtZBQrIcD2kAbnrhby3myXOIh7t/z2d9LPW3+VoUd9d2Lk1dYHUmuz6fbVKEmJSaS1WTbf0AMroS56uicx4TI0M1fcg84kvFO0UZQ3l2Wy15sLAzn04FuV/P/q3L00TMsFSPwNXg3ckqJWEWe9nrfi57bfcjuX/GGVC+RvX+6e6hczBzJsQjZI9FCIhKdbmwvIxvijeq6dQzJyT8ABjL0YImZcbb0WjfHWqTYV0k2aXXeg2Lnu1OCX4EOt2FYlZCn6KcWEpRO7ZglKxFGfnBMEFcaCIC1fLvTTm5+JLw6COPgFJCm7HWUGo=

idom/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.6.0"
1+
__version__ = "0.6.1-a.1"
22

33
from . import server
44

0 commit comments

Comments
 (0)