forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (56 loc) · 2.15 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.0.{build}-{branch}
#---------------------------------#
# environment configuration #
#---------------------------------#
image: Visual Studio 2019
clone_folder: C:\taichi
#---------------------------------#
# build configuration #
#---------------------------------#
platform: x64
configuration: Release
environment:
matrix:
- PYTHON: C:\Python36-x64\python.exe
- PYTHON: C:\Python37-x64\python.exe
- PYTHON: C:\Python38-x64\python.exe
- PYTHON: C:\Python39-x64\python.exe
skip_commits:
files:
- '*.md'
- '*.rst'
- docs
- benchmarks
- examples
- misc
- '.*'
cache:
- build -> CMakeLists.txt, cmake/*
build_script:
- set TAICHI_REPO_DIR=C:\taichi
- "%PYTHON% %TAICHI_REPO_DIR%/misc/appveyor_filter.py || appveyor exit 0"
- cd C:\
- curl --retry 10 --retry-delay 5 https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/taichi-llvm-10.0.0-msvc2019.zip -LO
- 7z x taichi-llvm-10.0.0-msvc2019.zip -otaichi_llvm
- curl --retry 10 --retry-delay 5 https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/clang-10.0.0-win.zip -LO
- "echo \"%APPVEYOR_REPO_COMMIT_MESSAGE%\" | grep '^\\[format\\]' && curl http://kun.csail.mit.edu:31415/%APPVEYOR_PULL_REQUEST_NUMBER% -LO || true"
- 7z x clang-10.0.0-win.zip -otaichi_clang
- set PATH=C:\taichi_llvm\bin;%PATH%;
- set PATH=C:\taichi_clang\bin;%PATH%
- clang --version
- cd C:\taichi
- set CI_SETUP_CMAKE_ARGS=-G "Visual Studio 16 2019" -A x64 -DLLVM_DIR=C:\taichi_llvm\lib\cmake\llvm
# This is to fix the bug caused by execnet 1.2, the library xdist uses to schedule tests.
# Reverting to v1.1 solves this bug(Python Fatal Error: IOError).
- "%PYTHON% -m pip install -U execnet==1.1"
- "%PYTHON% misc/ci_setup.py ci"
- '%PYTHON% -c "import taichi"'
- "%PYTHON% examples/algorithm/laplace.py"
- "%PYTHON% bin/taichi diagnose"
- "%PYTHON% bin/taichi test -Cvr2 -t2"
- "cd python && %PYTHON% build.py try_upload"
- "cd %TAICHI_REPO_DIR% && bash <(curl -s https://codecov.io/bash)"