This repository was archived by the owner on Jul 22, 2023. It is now read-only.
forked from pythonnet/pythonnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
95 lines (81 loc) · 2.74 KB
/
config.yml
File metadata and controls
95 lines (81 loc) · 2.74 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: 2
jobs:
build:
docker:
- image: circleci/python:3.9.1
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v3-dependencies-{{ checksum "requirements.txt" }}
- v3-dependencies-
- run:
name: install apt-transport-https
command: |
sudo apt-get update
sudo apt-get install apt-transport-https
- run:
name: install dotnet
command: |
# see https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/debian/9/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get install dotnet-sdk-5.0
sudo apt-get install aspnetcore-runtime-5.0
sudo apt-get install dotnet-runtime-5.0
- run:
name: dotnet info
command: |
dotnet --info
- run:
name: Install 7z, unrar
command: |
sudo apt-get install -y p7zip-full
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
python3 -m pip install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v3-dependencies-{{ checksum "requirements.txt" }}
- run:
name: build pythonnet
command: |
. venv/bin/activate
export DOTNET_CLI_TELEMETRY_OPTOUT=1
python3 setup.py build_dotnet
python3 setup.py bdist_wheel
python3 setup.py develop
- run:
name: check installation
command: |
python3 -m venv venv
. venv/bin/activate
python -c "import clr"
- run:
name: unittests
command: |
python3 -m venv venv
. venv/bin/activate
pytest
dotnet test src/embed_tests/
- run:
name: wheel
command: |
. venv/bin/activate
export DOTNET_CLI_TELEMETRY_OPTOUT=1
python3 setup.py bdist_wheel
mkdir -p test-reports/dist
cp dist/*.whl test-reports/dist
- store_artifacts:
path: test-reports
destination: test-reports