File: .appveyor.yml

package info (click to toggle)
mnemosyne 2.6.1+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,268 kB
  • sloc: python: 32,145; ansic: 837; xml: 625; makefile: 249
file content (46 lines) | stat: -rw-r--r-- 1,847 bytes parent folder | download | duplicates (2)
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
#  See also: https://packaging.python.org/guides/supporting-windows-using-appveyor/#setting-up

image:
- Visual Studio 2015

environment:
    matrix:
        - PYTHON: "C:\\Python36-x64"
    PATH: "%PATH%;C:\\projects\\mnemosyne\\miktex\\texmfs\\install\\miktex\\bin"
    APPVEYOR_SAVE_CACHE_ON_ERROR: "true"

version: '{branch}-{build}'

platform: x64

clone_depth: 20

build: off

cache:
  - C:\cache

# Enable rdp connections on init or finish
#init:
#    - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#on_finish:
#    - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

install:
    - ps: "If (!(Test-Path C:\\cache)){mkdir C:\\cache}"
    - ps: "If (!(Test-Path C:\\cache\\pip)){mkdir C:\\cache\\pip}"
    - ps: "If (!(Test-Path C:\\cache\\miktex-portable.exe)){wget http://mirrors.ctan.org/systems/win32/miktex/setup/windows-x86/miktex-portable.exe -OutFile C:\\cache\\miktex-portable.exe}"
    - cmd: "7z x C:\\cache\\miktex-portable.exe * -aot -omiktex"
    - cmd: "dir C:\\cache"
      # Not sure why we need it, but dvipng triggers the miktex package manager
      # and wants to install zhmetrics
      # If we ever need a local miktex repository: # https://bruceyf.wordpress.com/2008/05/07/miktexs-secret-local-package-repository/
    - cmd: "mpm --install=zhmetrics"
    - cmd: "latex -interaction=nonstopmode -version"
    - cmd: "%PYTHON%\\python.exe -m pip install --cache-dir C:\\cache\\pip -r requirements.txt"
    - ps: "mkdir -p mo\\de\\LC_MESSAGES"
    - cmd: "%PYTHON%\\python.exe po\\msgfmt.py -o mo\\de\\LC_MESSAGES\\mnemosyne.mo po\\de.po"

test_script:
    # Use -v to list test names
    - cmd: "%PYTHON%\\python.exe -m nose tests"