-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
51 lines (45 loc) · 1.82 KB
/
appveyor.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
# Don't build branch if there is an open PR, to prevent double builds.
# For now, Appveyor will only build PR commits and not commits to master or
# commits on random branches without an associated PR.
skip_branch_with_pr: true
environment:
# Only use pre-installed Python versions, which Appveyor may upgrade to a
# later point release. See:
# http://www.appveyor.com/docs/installed-software#python
matrix:
- PYTHON_HOME: C:\\PYTHON27-x64
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
- PYTHON_HOME: C:\\PYTHON37-x64
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
version: "0.999.post{build}"
build_script:
# Get the Rust build tool chain. The install tool actually changes
# sometimes so the checksum actually changes sometimes. If it breaks,
# update the checksum here.
- "choco install rustup.install --version 1.19.0 --checksum 9F9E33FA4759075EC60E4DA13798D1D66A4C2F43C5500E08714399313409DCF5"
# Get it on our %PATH%.
- "refreshenv"
# Get challenge-bypass-ristretto-ffi source code
- "git submodule init"
- "git submodule update"
# Build the whole thing.
- "%PYTHON_HOME%\\python setup.py install"
# The source is all in . so move the script somewhere else so we can run it
# against the installed version instead of the source tree. The source tree
# version doesn't work because it doesn't have the built extension module in
# it. It's nice to test against the installed version anyway.
- "copy spike.py C:\\spike.py"
# Build a binary wheel, too.
- "%PYTHON_HOME%\\Scripts\\pip install wheel"
- "%PYTHON_HOME%\\python setup.py bdist_wheel"
test_script:
# Get away from the source directory which will just confuse the Python
# module system.
- "cd C:\\"
# This passes for a test suite.
- "%PYTHON_HOME%\\python C:\\spike.py"
artifacts:
- path: "dist"
name: "Dist"