Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
/pythonnetPublic archive
forked frompythonnet/pythonnet

Commitdc9b414

Browse files
committed
Revert "Revert "Create config.yml""
This reverts commit1869748.
1 parent1869748 commitdc9b414

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

‎.circleci/config.yml‎

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
version:2
2+
jobs:
3+
build:
4+
docker:
5+
-image:circleci/python:3.9.1
6+
7+
working_directory:~/repo
8+
9+
steps:
10+
-checkout
11+
12+
-restore_cache:
13+
keys:
14+
-v3-dependencies-{{ checksum "requirements.txt" }}
15+
-v3-dependencies-
16+
17+
-run:
18+
name:install apt-transport-https
19+
command:|
20+
sudo apt-get update
21+
sudo apt-get install apt-transport-https
22+
23+
-run:
24+
name:install dotnet
25+
command:|
26+
# see https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
27+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
28+
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
29+
wget -q https://packages.microsoft.com/config/debian/9/prod.list
30+
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
31+
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
32+
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
33+
sudo apt-get update
34+
sudo apt-get install dotnet-sdk-5.0
35+
sudo apt-get install aspnetcore-runtime-5.0
36+
sudo apt-get install dotnet-runtime-5.0
37+
38+
-run:
39+
name:dotnet info
40+
command:|
41+
dotnet --info
42+
43+
-run:
44+
name:Install 7z, unrar
45+
command:|
46+
sudo apt-get install -y p7zip-full
47+
48+
-run:
49+
name:install dependencies
50+
command:|
51+
python3 -m venv venv
52+
. venv/bin/activate
53+
python3 -m pip install -r requirements
54+
55+
-save_cache:
56+
paths:
57+
-./venv
58+
key:v3-dependencies-{{ checksum "requirements.txt" }}
59+
60+
-run:
61+
name:build pythonnet
62+
command:|
63+
. venv/bin/activate
64+
export DOTNET_CLI_TELEMETRY_OPTOUT=1
65+
python3 setup.py build_dotnet
66+
python3 setup.py build_wheel
67+
python3 setup.py develop
68+
69+
-run:
70+
name:check installation
71+
command:|
72+
python3 -m venv venv
73+
. venv/bin/activate
74+
python -c "import clr"
75+
76+
-run:
77+
name:unittests
78+
command:|
79+
python3 -m venv venv
80+
. venv/bin/activate
81+
pytest
82+
dotnet test src/embed_tests/
83+
84+
-run:
85+
name:wheel
86+
command:|
87+
. venv/bin/activate
88+
export DOTNET_CLI_TELEMETRY_OPTOUT=1
89+
python3 setup.py bdist_wheel
90+
mkdir -p test-reports/dist
91+
cp dist/*.whl test-reports/dist
92+
93+
-store_artifacts:
94+
path:test-reports
95+
destination:test-reports

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp