forked from millejoh/emacs-ipython-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
97 lines (78 loc) · 3.2 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: 1.0.{build}
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
# Skipping commits with particular message or from specific user
skip_commits:
message: /\[skip appveyor\]/ # Regex for matching commit message
# Do not build feature branch with open Pull Requests
# skip_branch_with_pr: true
# Maximum number of concurrent jobs for the project
max_jobs: 1
# Build worker image (VM template)
image: Visual Studio 2015
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# clone directory
clone_folder: c:\projects\myproject
# fetch repository as zip archive
shallow_clone: true # default is "false"
# set clone depth
clone_depth: 5 # clone entire repository history if not defined
# environment variables
environment:
PYTHON: C:\Python37
MINICONDA: C:\Miniconda3-x64
APPVEYOR_RDP_PASSWORD: ein_t3st1ing_admin
matrix:
fast_finish: true
# build cache to preserve files/folders between builds
cache:
# - packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
# - C:\python37\
- C:\ProgramData\chocolatey\lib
- C:\ProgramData\chocolatey\bin
- '%LocalAppData%\NuGet\Cache' # NuGet < v3
- '%LocalAppData%\NuGet\v3-cache' # NuGet v3
# scripts that run after cloning repository
install:
- choco install curl
# - if not exist %userprofile%\local mkdir %userprofile%\local
- if not exist %userprofile%\.emacs.d mkdir %userprofile%\.emacs.d
# - copy C:\projects\myproject\tools\appveyor.init.el %userprofile%\.emacs.d\init.el
- copy C:\projects\myproject\tools\appveyor.init.el %userprofile%\.emacs
- set PATH=C:\ProgramData\chocolatey\bin;c:\msys64\home\appveyor\.cask\bin;C:\msys64\usr\bin;%PYTHON%\Scripts;%PATH%
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
- "%PYTHON%\\python.exe -m pip install pathlib2"
- "%PYTHON%\\python.exe -m pip install -r test_requirements.txt"
- jupyter kernelspec list
- ipython --version
- curl --version
- choco install emacs64
- emacs --version
- python C:\projects\myproject\tools\install-cask-appveyor.py
#---------------------------------#
# build configuration #
#---------------------------------#
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- invoke clean
- invoke test-compile
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
# - ps: $env:PATH = "$(cask exec-path);$env:PATH"
# - ps: $env:EMACSLOADPATH = $(cask load-path)
- invoke test-unit
- invoke test-func
# - invoke test-int
# - bash -lc "cd /c/projects/myproject ; make test"
# Uncomment the following if you need to connect to build after it finishes to
# troubleshoot any issues.
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))