-
Notifications
You must be signed in to change notification settings - Fork 2
/
.appveyor.yml
59 lines (58 loc) · 1.71 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
branches:
only:
- master
version: 0.2.0.{build}
environment:
matrix:
- COMPILER: msys2
PLATFORM: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
BIT: 64
PYTHON_DIR: Python35-x64
- COMPILER: msys2
PLATFORM: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
BIT: 64
PYTHON_DIR: Python36-x64
- COMPILER: msys2
PLATFORM: x86
MSYS2_ARCH: i686
MSYS2_DIR: msys64
MSYSTEM: MINGW32
BIT: 64
PYTHON_DIR: Python36
before_build:
- C:\%PYTHON_DIR%\python.exe -m pip install --upgrade pip setuptools wheel
- SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"
- bash -lc "pacman -S --needed --noconfirm pacman-mirrors"
- bash -lc "pacman -S --needed --noconfirm git"
- bash -lc "pacman -Syu --noconfirm"
- bash -lc "pacman -S --needed --noconfirm make"
- bash -lc "pacman -S --needed --noconfirm mingw-w64-%MSYS2_ARCH%-toolchain mingw-w64-%MSYS2_ARCH%-cmake mingw-w64-%MSYS2_ARCH%-openblas"
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
build_script:
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; /c/%PYTHON_DIR%/python.exe setup.py build_ext"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; /c/%PYTHON_DIR%/python.exe setup.py bdist_wheel"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; /c/%PYTHON_DIR%/python.exe setup.py install"
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- C:\%PYTHON_DIR%\python.exe tests/test_itensor.py -v
artifacts:
- path: "dist/pitensor-*.whl"
deploy:
- provider: BinTray
username: kyungminlee
api_key:
secure: 2qk3riUWS0zwIg7gJI86wGgTtvdoFHbzHYMNpG1fWBO+NlrWsWHrvhVza4nn9AtE
subject: kyungminlee
repo: PiTensor
package: PiTensor
version: 0.2.0.dev1
publish: false
override: true
explode: false