-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
70 lines (64 loc) · 2.75 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: python
dist: jammy
python:
- 3.10
- 3.9
- 3.8
env:
global:
- RECIPIENT=3MyGpJh6Bb8auF3HtSr2dSJjqQVxgqLynpK
- HASH1=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35
- HASH2=26db936641a9e6f5a01d3c56f69212de2549fbb926f428332ca715eb1b90a153
- HASH_BASE58=FJKTv1un7qsnyKdwKez7B67JJp3oCU5ntCVXcRsWEjtg
- LEASE_ID=6XmeG7SRWiw8pD6Uad6D9AAaY354v5TV6AJMhPpHMkqy
branches:
only:
- main
- /^v\d+\.\d+\.\d+$/
install:
- pip3 install .
- pip3 install --upgrade build
before_script:
- python3 -m build
- pip install dist/lto_cli*.whl
script:
- lto
- lto account create
- ACCOUNT=$(lto account create)
- echo $ACCOUNT
- cat ~/.lto/L/accounts.ini
- lto account list && lto account list | grep -q $ACCOUNT
- lto node status
- lto balance 3JugjxT51cTjWAsgnQK4SpmMqK6qua1VpXH
- lto anchor --hash $HASH_BASE58 --encoding base58 --no-broadcast
- lto anchor --hash $HASH1 --hash $HASH2 --no-broadcast
- lto anchor --hash $HASH2:$HASH1 --no-broadcast
- lto association issue --recipient $RECIPIENT --type 1 --subject $HASH1 --no-broadcast
- lto association revoke --recipient $RECIPIENT --type 1 --subject $HASH1 --no-broadcast
- lto transfer --recipient $RECIPIENT --amount 742.6 --no-broadcast
- echo -e "3N6MFpSbbzTozDcfkTUT5zZ2sNbJKFyRtRj 742.6\n3NBC7ETcdPbf4QAXSop5UCJ53yX34aGPXoz 2184.2" | lto mass-transfer --no-broadcast
- lto lease create --recipient $RECIPIENT --amount 742.6 --no-broadcast
- lto lease cancel --leaseId $LEASE_ID --no-broadcast
- lto sponsorship create --recipient $RECIPIENT --no-broadcast
- lto sponsorship cancel --recipient $RECIPIENT --no-broadcast
stages:
- name: test
if: tag IS blank
jobs:
include:
- name: "Publish to PyPi"
stage: deploy
if: tag IS present
before_install:
- sed -e "s/version = 0.0.0/version = $TRAVIS_TAG/" -i setup.cfg
before_script: skip
script:
- python3 -m build
deploy:
provider: pypi
username: __token__
password:
secure: "oHTDZ5tdtwMGJLMEa1LFzv0YLtQ6prodprgTSQ5KdqaPgDvqWMWbMLxnDXWt5Ft/cXVAcyTygEvAMNBQwBo+OB0pygMrlQbfHUKbCahOxBxS9guK2cQKqRWGkj/5AdRyA9QtZOrTbKUH7lTpslHvannz/dwQPqAyG6B4gdMnW34gAe9iP77GPVbOcjwqjBvVqwisoUWcZBBYxe5suWcQi8v2ARA89ECr/UkSmuQP+y4l9ymsLoIzGpMZ9AOaB12kHC9GxwzbxQ6zT4YendGvDPsswWO2rjOcNCOYQgLTlBuxAUYRsO1KGGLRwY2z3PdJXxeUXdY70FEDYq/5B/2oyCQ1YOsevRm0I+0oV1+8Y/r/E8eTgd7NbDozJmHeRm6FfFio6FGjJ4nGMNtmLRAdTXASqyKUacpqLFXd2/bM1UrtVMdBVw+COY5ED2L0549M8hZ52alPa1vMfen+IxJ06zBsLqjz7nn/98JHyXZu9C3HscBL3jTLPTPYd1VXZaabVybY9wH49yVzPqIpNjVy7z8PhhfNoywufVuSraO3/Tm8BessFc0Clt/tjT/4VFRFGGm9CLSO+lfyiZD2TOBbwxeWkNV6ooOf3NgbXKpMURuOujSlar+gxF6O3c5xdSVz9YD3KE1YVByFEkHvQbFC7jDQxFN5yNtgsyw6eBXoAC0="
on:
tags: true
skip_cleanup: true