forked from sanity-io/sanity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (36 loc) · 1.29 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
environment:
matrix:
- nodejs_version: "10"
- nodejs_version: "8"
- nodejs_version: "6"
install:
- ps: Install-Product node $env:nodejs_version
- npm install
- npm run bootstrap
- npm run build
test_script:
- node --version
- npm --version
# Allow running the Sanity CLI tool without specifying absolute path
- set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\packages\@sanity\bin
# Build CLI to a single file
- cd packages\@sanity\cli
- npm run pack
- npm i -g
# Remove source and dependencies from CLI to ensure it works standalone
- cd %APPVEYOR_BUILD_FOLDER%
- rd /s /q packages\@sanity\cli\node_modules
- rd /s /q packages\@sanity\cli\src
- rd /s /q packages\@sanity\cli\lib
# Test building the test studio with all customizations
- cd %APPVEYOR_BUILD_FOLDER%\packages\test-studio
- sanity build
# Test initializing a project in unattended mode
- mkdir %APPVEYOR_BUILD_FOLDER%\tmp
- sanity init -y --project=ppsg7ml5 --dataset=test --output-path=%APPVEYOR_BUILD_FOLDER%\tmp
# Use the newly commited changes instead of the latest dependencies from NPM
- cd %APPVEYOR_BUILD_FOLDER%\tmp
- node %APPVEYOR_BUILD_FOLDER%\scripts\symlinkDependencies.js .
# Test building the project with latest dependencies
- sanity build --skip-minify
build: off