forked from supercollider/cookiecutter-supercollider-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
71 lines (52 loc) · 1.9 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
version: '{build}'
clone_depth: 1
# https://www.appveyor.com/docs/build-environment/#build-worker-images
image: Visual Studio 2017
test: off
environment:
CMAKE_CONFIGURATION: Debug
matrix:
- CMAKE_GENERATOR: "Visual Studio 15 2017"
PYTHON: "C:\\Python36"
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
PYTHON: "C:\\Python36-x64"
install:
- echo "Set python version"
- set PATH=%PYTHON%;%PATH%;
- python --version
- echo "Get SuperCollider"
- git clone --depth 1 https://github.com/supercollider/supercollider.git ../supercollider
- echo "Upgrade pip"
- python -m pip install --upgrade pip
- echo "Get cookiecutter"
- python -m pip --version
- python -m pip install cookiecutter
before_build:
- cd ..
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- echo %cd%\\supercollider>>cmds # sc path
- echo TEST_PROJECT_NAME>>cmds
- echo TEST_NAMESPACE>>cmds
- echo TEST_REPO_NAME>>cmds
- echo TEST_PLUGIN_NAME>>cmds
- echo Test plugin description>>cmds
- echo Test full name>>cmds
- echo TestGithubUsername>>cmds
- echo [email protected]>>cmds
- python -m cookiecutter cookiecutter-supercollider-plugin <cmds
- cd TEST_REPO_NAME
- echo "CMake file contents:"
- type CMakeLists.txt
- mkdir build && cd build
- cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=_install -DSTRICT=ON ..
build_script:
- cmake --build . --target install --config %CMAKE_CONFIGURATION%
after_build:
- echo "sc file contents:"
- type _install\\TEST_PROJECT_NAME\\TEST_PLUGIN_NAME\\Classes\\TEST_PLUGIN_NAME.sc
- echo "schelp file contents:"
- type _install\\TEST_PROJECT_NAME\\TEST_PLUGIN_NAME\\Help\\TEST_PLUGIN_NAME.schelp
- echo "testing existence of plugin files:"
- if not exist _install\\TEST_PROJECT_NAME\\TEST_PLUGIN_NAME\\TEST_PLUGIN_NAME_scsynth.scx exit 1
- if not exist _install\\TEST_PROJECT_NAME\\TEST_PLUGIN_NAME\\TEST_PLUGIN_NAME_supernova.scx exit 1