-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
82 lines (72 loc) · 2.79 KB
/
Copy pathappveyor.yml
File metadata and controls
82 lines (72 loc) · 2.79 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
version: build{build}
branches:
only:
- master
- pre-release
- dev
max_jobs: 1
# For Python versions available on Appveyor, see
# https://www.appveyor.com/docs/windows-images-software/#python
# https://www.appveyor.com/docs/linux-images-software#python
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PYTHON: "C:\\Python39-x64\\python.exe"
APPVEYOR_BAKE_IMAGE: vs2019_mathmakerlib
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
APPVEYOR_BAKE_IMAGE: ubuntu2004_mathmakerlib
install:
# We need wheel installed to build wheels
- sh: whoami
- sh: pwd
- sh: ls -alhG
- cmd: set PYTHONIOENCODING=utf-8
- cmd: set PY_PYTHON=3.9
- cmd: set PATH=C:\\Python39-x64\\;C:\\Python39-x64\\Scripts;%USERPROFILE%\\AppData\\Roaming\\Python\\Scripts;%PATH%
- cmd: python --version
- cmd: python -c "import sys; print(sys.platform); print(sys.version_info)"
- cmd: python -m venv py39
- sh: sudo apt -qq update --allow-releaseinfo-change
- sh: sudo apt install software-properties-common
- sh: sudo add-apt-repository -y ppa:deadsnakes/ppa
- sh: sudo apt install -y python3.9
- sh: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 8
- sh: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 9
- sh: sudo apt -y install python3-venv python3-pip curl python-is-python3 fonts-ubuntu
- sh: python --version
- sh: mkdir -p $HOME/.local/bin
- sh: export PATH="$HOME/.local/bin:$PATH"
- sh: echo $PATH
- sh: curl https://gitlab.com/nicolas.hainaux/amoxtli/-/raw/master/src/olli/olli.sh > olli.sh
- sh: chmod ugo+x olli.sh
- sh: ./olli.sh linux
- sh: wait $!
- sh: export PATH="`cat $HOME/.tlbindir`:$PATH"
- sh: echo $PATH
- sh: lualatex --version
- sh: luaotfload-tool --version
build_script:
- cmd: .\py39\Scripts\activate.bat
- cmd: curl -sSL https://install.python-poetry.org | %PYTHON%
- cmd: poetry install
- sh: curl -sSL https://install.python-poetry.org | python3 -
- sh: sudo locale-gen en_US.UTF-8 && sudo locale-gen fr_FR.UTF-8
- sh: echo $PATH
- sh: poetry install
test_script:
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python version you want to use on PATH.
- cmd: pytest tests
- sh: poetry run coverage run --source=mathmakerlib -m pytest -vv
after_test:
# This step builds your wheels.
- cmd: poetry build
- sh: poetry run coveralls
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.