forked from uck9/ntc-netbox-plugin-onboarding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 2.06 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
40
41
42
43
44
---
language: python
python:
- '3.6'
- '3.7'
- '3.8'
env:
# Each version of NetBox listed here uses configuration stored in development/configuration.py
matrix:
- NETBOX_VER=v2.8.9
- NETBOX_VER=v2.9.11
- NETBOX_VER=v2.10.10
- NETBOX_VER=v2.11.10
# Encrypted value for PYPI_TOKEN, this secret has been generated with the following command
# travis encrypt PYPI_TOKEN=<value> --add env.global --com
# Might need to update it once the repo is publish (travis-ci.org vs travis-ci.com)
global:
secure: gE/KrxVCPfDItdRa0FV+49MQ0kfsEOMFdCd8Z6oETq6dqTPa7PpaCpQ2jJc72F3TYIVtV15ziCqF3m63fs+13kpbicvlBasXTjom8PV0n+mrLuMm+ejyFuXvRrIsS5GcLkf2THqJBfQRZEdJECiqwGQTbC0rH3icmbxk+KtlsDELGMmxPBdp+o9jxWrP+duKqlOi1kg/Q97gpwRo3fZCJZVtBWed/2Ha0+2Vc6nMFixzayab78gKocz//rx+xB+ODzqZBNUks9A0I2Nqw7Ano6/xVMWYPRMx/mhoyRe6tTMUA3AhkxHZAu89eJmW/fNPvC42Qos8V8aQzJnv0X8HWQl5QdypZZdHoOwVmi3CBVWAkUvazIj9PHX5hxsY3Svjnkq62Rmp1iF1Le87Uh8+N9rPWyZVtFwTqFD+ddT+/KHpdifD5y7dRwMiS5pbEZ01H6zIf3WvxvWUMI7Gm0SscZXWmV/s483Rlzz1wU1QgVF06SjrzcDsu/G6oR5JnZXk5L8mzrkslrRz5/DoP59i6gNpLrWTNnDTTgVxfC3RqumS3MtjM2Ap66WkZeqmxijsoqV8qZ//yKq2+wF6ZcQdSirUj1lUKDOUhWX33ls4pWt3zZIEAHni0yOecfiEJv6+vSWhPEgBHK+1sD/K6ilhHmN4NqJNkUEiLOw/+HU4AQs=
services:
- docker
# --------------------------------------------------------------------------
# Tests
# --------------------------------------------------------------------------
before_script:
- pip install invoke docker-compose
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py > /tmp/get-poetry.py
- python /tmp/get-poetry.py -y --version 1.0.2
- source $HOME/.poetry/env
script:
- invoke build --python-ver $TRAVIS_PYTHON_VERSION
- invoke tests --python-ver $TRAVIS_PYTHON_VERSION
# --------------------------------------------------------------------------
# Deploy
# --------------------------------------------------------------------------
deploy:
provider: script
script: poetry config pypi-token.pypi $PYPI_TOKEN && poetry publish --build
skip_cleanup: true
on:
tags: true
branch: master
condition: $NETBOX_VER = v2.9.11
python: 3.7