Skip to content

Commit a8a6562

Browse files
authored
Merge pull request #29 from networktocode/dga-pypi-travis
Add support for Pypi in Travis
2 parents 4e78044 + 97fb96f commit a8a6562

File tree

4 files changed

+43
-17
lines changed

4 files changed

+43
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ntc_netbox_plugin_onboarding.egg-info
22
__pycache__
33
*.swp
4+
dist

.travis.yml

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
11
---
22
language: python
3-
43
python:
5-
- "3.6"
6-
- "3.7"
7-
- "3.8"
8-
4+
- '3.6'
5+
- '3.7'
6+
- '3.8'
7+
env:
98
# Each version of NetBox listed here must have a corresponding directory/configuration file
109
# under development/netbox_<NETBOX_VER>/configuration.py
11-
env:
12-
- NETBOX_VER=v2.8.3
13-
- NETBOX_VER=master
14-
10+
matrix:
11+
- NETBOX_VER=v2.8.3
12+
- NETBOX_VER=master
13+
# Encrypted value for PYPI_TOKEN, this secret has been generated with the following command
14+
# travis encrypt PYPI_TOKEN=<value> --add env.global --com
15+
# Might need to update it once the repo is publish (travis-ci.org vs travis-ci.com)
16+
global:
17+
secure: dpSnHW9xP++k8AOfguX6poI3HdK0fxaWq4aHZCqxbSrNXzokcWf8y5PRMsDLdrbWMXG2JOmFl32bgsYXzcyHoopJwIsetOK97Sjq/Nd/Ycqne/bfXUyvqvF/wcpM9OHd+baHOk+yBVIoEe0fLZVo5gP7abP8ZFyjtyXRxP6zapq0cnxI0H6EPdNRiWJIa8gZT/RKFEeQHN6PIiF5dRNv1Bw0Gp43VT48t0MwhvnH8bT7a6SAZp/4aCNN6+yMPXcUTFyN+Pm+rFwoi7xVafpdFoZb4tOcVoTPQWRS7kcf4y+kvTuUWizumt7Oo5J2MyprAZsdWhp/4RGcwzdr371Bj9RyjH4lm+yf3uGw+k5SmQbbvg/5JXzCwHZxZCKl8w289iqWd024AprrkR20o3awxsTlobkE2+T8TU4w3pL/Rponu3B9VyI+I5WZshbM19nvhQHXmyWoNdtCFGri0dL9XYpLHqpiE+zD1ZsVMth4d+YZkI2Mj6eMiBVuVR5568TGqZ/qHE2dX3h0vkWIYFU0XFwx/P46kCxf89FfRD9GShahoBH2P+EFIiz1TcnnLbw/kyXleYVMWYIXYDoUT+f3Xs265nMqCXHdTA6GUlS8A79rttgouWN99KEo6EkF0o2ECiwSJfU/mq3Z5KWoHL97KlC6C9G+DxPCrLsvbOPCcm4=
1518
services:
16-
- docker
17-
19+
- docker
20+
# --------------------------------------------------------------------------
21+
# Tests
22+
# --------------------------------------------------------------------------
1823
before_script:
19-
- pip install invoke docker-compose poetry
20-
24+
- pip install invoke docker-compose poetry
2125
script:
22-
- invoke build --python-ver $TRAVIS_PYTHON_VERSION
23-
- invoke tests --python-ver $TRAVIS_PYTHON_VERSION
26+
- invoke build --python-ver $TRAVIS_PYTHON_VERSION
27+
- invoke tests --python-ver $TRAVIS_PYTHON_VERSION
28+
# --------------------------------------------------------------------------
29+
# Deploy
30+
# --------------------------------------------------------------------------
31+
before_deploy:
32+
- poetry build
33+
deploy:
34+
provider: script
35+
script: poetry publish -u __token__ -p $PYPI_TOKEN
36+
on:
37+
tags: true
38+
branch: master
39+
condition: $NETBOX_VER = master
40+
python: 3.7

netbox_onboarding/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
limitations under the License.
1313
"""
1414

15-
__version__ = "0.9.0"
15+
__version__ = "0.9.2"
1616

1717
from extras.plugins import PluginConfig
1818

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
[tool.poetry]
22
name = "ntc-netbox-plugin-onboarding"
3-
version = "0.9.0"
3+
version = "0.9.2"
44
description = "A plugin for NetBox to easily onboard new devices."
55
authors = ["Info <info@networktocode.com>"]
6+
license = "Apache-2.0"
7+
readme = "README.md"
8+
homepage = "https://github.com/networktocode/ntc-netbox-plugin-onboarding"
9+
repository = "https://github.com/networktocode/ntc-netbox-plugin-onboarding"
10+
keywords = ["netbox", "network", "onboarding", "django"]
11+
include = [
12+
"LICENSE",
13+
]
614
packages = [
715
{ include = "netbox_onboarding" },
816
]

0 commit comments

Comments
 (0)