forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (54 loc) · 1.36 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
# branches to build
branches:
# whitelist
only:
- 1.0
- master
platform:
- x64
environment:
nodejs_version: "8"
matrix:
- example: gatsbygram
buildon: commit
- example: client-only-paths
buildon: tag
- example: hn
buildon: tag
- example: no-plugins
buildon: tag
- example: no-trailing-slashes
buildon: tag
- example: using-drupal
buildon: tag
- example: using-postcss-sass
buildon: tag
# Install scripts. (runs after repo cloning)
install:
- echo This example is built on %buildon% and the commit tag is %APPVEYOR_REPO_TAG% and the tag is %APPVEYOR_REPO_TAG_NAME%
# we kill the build for most examples unless it is a release or a forced build
- ps: |
if (($env:buildon -eq "tag") -and ($env:APPVEYOR_REPO_TAG -eq "false") -and ($env:APPVEYOR_FORCED_BUILD -ne "True"))
{
Exit-AppVeyorBuild
}
- ps: Install-Product node $env:nodejs_version $env:platform
- ps: npm install -g windows-build-tools
- npm install -g gatsby-dev-cli@canary
- echo we are running on %PLATFORM%
- npm install
- node --version
- npm --version
- npm test
# Build gatsby head
before_build:
- npm run build
build_script:
- cd examples/%example%
- npm install
- gatsby-dev --set-path-to-repo ../..
- gatsby-dev --scan-once
- npm run build
artifacts:
- path: examples/$(example)
deploy: off