This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (46 loc) · 1.63 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
language: python
python:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
dist: bionic
os: linux
arch:
- arm64
jobs:
fast_finish: true
before_install:
- pip install poetry
install:
- poetry install
script:
- black --check .
- coverage run --source=hebi -m pytest hebi/tests
# the samples from the README file
- >
coverage run -a --source=hebi -m hebi eval examples/smart_contracts/assert_sum.py "{\"int\": 4}" "{\"int\": 38}" "{\"constructor\": 6, \"fields\": []}"
- >
coverage run -a --source=hebi -m hebi compile examples/smart_contracts/assert_sum.py > assert_sum.uplc
- >
coverage run -a --source=hebi -m hebi eval_uplc examples/smart_contracts/assert_sum.py "{\"int\": 4}" "{\"int\": 38}" "{\"constructor\": 6, \"fields\": []}"
- >
coverage run -a --source=hebi -m hebi compile_pluto examples/smart_contracts/assert_sum.py
- >
coverage run -a --source=hebi -m hebi build examples/smart_contracts/assert_sum.py
# all smart contracts
- >
for i in $(find examples -type f -name "*.py" -not \( -name "broken*" -o -name "extract*" -o -name "__*" \)); do
echo "$i"
coverage run -a --source=hebi -m hebi compile "$i" > /dev/null
done
# smart contracts with special parameters
- >
coverage run -a --source=hebi -m hebi build examples/smart_contracts/parameterized.py '{"int": 42}'
- >
coverage run -a --source=hebi -m hebi build examples/smart_contracts/dual_use.py --force-three-params
- >
coverage run -a --source=hebi -m hebi build examples/smart_contracts/wrapped_token.py '{"bytes": "ae810731b5d21c0d182d89c60a1eff7095dffd1c0dce8707a8611099"}' '{"bytes": "4d494c4b"}' '{"int": 1000000}' --force-three-params
after_success:
- coverage report
- coveralls