forked from emacs-jupyter/jupyter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (60 loc) · 2.39 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
environment:
PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%
CASK_PYTHON: C:\Python27\python
JUPYTER_PYTHON_VERSION: 3.6
MINICONDA: C:\Miniconda3-x64
EZMQ_VERSION: v0.10.1
EZMQ_TZG: emacs-zmq-x86_64-w64-mingw32.tar.gz
matrix:
fast_finish: true
cache:
- C:\msys64\var\cache\pacman\pkg
- C:\Miniconda3-x64\envs\jupyter
install:
- pacman --needed --noconfirm -Syu
- pacman --needed --noconfirm -Sy
- pacman --needed --noconfirm -S mingw-w64-x86_64-emacs mingw-w64-x86_64-libxml2 mingw-w64-x86_64-libjpeg-turbo
# Install Cask
# NOTE: Using bash here so that cask writes to ~/.cask
- bash -lc "curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | $CASK_PYTHON"
- cd %APPVEYOR_BUILD_FOLDER%
- ps: |
Add-Content -Path run-cask -Value @'
#!/usr/bin/env bash
# Swap stderr and stdout, seems that they are mixed up.
$CASK_PYTHON ~/.cask/bin/cask $@
'@
- chmod +x run-cask
- set PATH=%APPVEYOR_BUILD_FOLDER%;%PATH%
- set CASK=run-cask
# Install Jupyter
- '"%MINICONDA%\Scripts\activate.bat"'
- conda config --set always_yes yes --set changeps1 no
- if not exist C:\Miniconda3-x64\envs\jupyter conda create --name jupyter python=%JUPYTER_PYTHON_VERSION%
- conda activate jupyter
- conda install jupyter
# Install additional packages needed by tests
- conda install -c conda-forge pandoc
# Ensure Jupyter runtime dir can be written to
- ps: mkdir -p (jupyter --runtime-dir)
- jupyter --version
- jupyter notebook --version
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- make dev
# Download emacs-zmq dll binaries
- ps: cd (Get-ChildItem -Recurse -Depth 2 -Path .cask -Filter zmq-*).FullName
- appveyor DownloadFile https://github.com/dzop/emacs-zmq/releases/download/%EZMQ_VERSION%/%EZMQ_TZG%
- tar -xzf %EZMQ_TZG%
# NOTE: Set PATH to include the ZMQ directory so that emacs-zmq.dll can find
# libzmq.dll and it needs to be at the front of PATH to ensure we find the
# right one. See
# https://docs.microsoft.com/en-us/windows/desktop/dlls/dynamic-link-library-search-order
# TODO: Make this unnecessary
- ps: $env:PATH = "$(Get-Location);$env:PATH"
- make compile
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- ps: $env:PATH = "$(bash -lc 'cd $APPVEYOR_BUILD_FOLDER; run-cask exec-path');$env:PATH"
- ps: $env:EMACSLOADPATH = (bash -lc 'cd $APPVEYOR_BUILD_FOLDER; run-cask load-path')
- ert-runner.bat --script -L .