forked from mhallin/graphql_ppx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
52 lines (45 loc) · 1.49 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
platform:
- x64
environment:
matrix:
- FORK_USER: ocaml
FORK_BRANCH: master
CYG_ROOT: C:\cygwin64
OPAM_SWITCH: 4.02.3+mingw64c
PACKAGE: graphql_ppx_base
OPAMYES: 1
INSTALL: false
REVDEPS: false
IS_GRAPHQL_PPX_CI: true
TARGET_PLATFORM: win-x64
- FORK_USER: ocaml
FORK_BRANCH: master
CYG_ROOT: C:\cygwin
OPAM_SWITCH: 4.02.3+mingw32c
PACKAGE: graphql_ppx_base
OPAMYES: 1
INSTALL: false
REVDEPS: false
IS_GRAPHQL_PPX_CI: true
TARGET_PLATFORM: win-x86
install:
- ps: Install-Product node LTS
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/$env:FORK_USER/ocaml-ci-scripts/$env:FORK_BRANCH/appveyor-install.ps1"))
- yarn
build_script:
- call %CYG_ROOT%\bin\bash.exe -l %APPVEYOR_BUILD_FOLDER%\appveyor-opam.sh
- call %CYG_ROOT%\bin\bash.exe -l -c "cd /cygdrive/c/projects/graphql-ppx && make build"
test_script:
- node convertSchema schema.gql > graphql_schema.json
- call %CYG_ROOT%\bin\bash.exe -l -c "cd /cygdrive/c/projects/graphql-ppx && make test"
- call %CYG_ROOT%\bin\bash.exe -l -c "NODE_ENV=production cd /cygdrive/c/projects/graphql-ppx && make test"
- move graphql_ppx.exe graphql_ppx-%TARGET_PLATFORM%.exe
artifacts:
- path: graphql_ppx-*.exe
deploy:
provider: GitHub
auth_token:
secure: cNoylUr8IbJuXONnyQFAUTNzU0GsZkq4mnAhvyzqPgbtesQSJM0rCJGDPhLjMHo+
artifact: /graphql_ppx-.*\.exe/
on:
appveyor_repo_tag: true