-
Notifications
You must be signed in to change notification settings - Fork 73
/
appveyor.yml
66 lines (50 loc) · 1.64 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
---
version: '{build}'
clone_folder: c:\gopath\src\gopkg.in\reform.v1
environment:
# no `-mod=readonly` to test PRs made by @dependabot;
# `make ci-check-changes` step below still checks what we need
GOPATH: c:\gopath
GO111MODULE: "on"
GOPROXY: https://proxy.golang.org
GORACE: halt_on_error=1
matrix:
- REFORM_MAKE_TARGET: sqlite3
- REFORM_SQL_INSTANCE: SQL2008R2SP2
REFORM_MAKE_TARGET: win-mssql
- REFORM_SQL_INSTANCE: SQL2008R2SP2
REFORM_MAKE_TARGET: win-sqlserver
- REFORM_SQL_INSTANCE: SQL2012SP1
REFORM_MAKE_TARGET: win-mssql
- REFORM_SQL_INSTANCE: SQL2012SP1
REFORM_MAKE_TARGET: win-sqlserver
- REFORM_SQL_INSTANCE: SQL2014
REFORM_MAKE_TARGET: win-mssql
- REFORM_SQL_INSTANCE: SQL2014
REFORM_MAKE_TARGET: win-sqlserver
- REFORM_SQL_INSTANCE: SQL2016
REFORM_MAKE_TARGET: win-mssql
- REFORM_SQL_INSTANCE: SQL2016
REFORM_MAKE_TARGET: win-sqlserver
install:
- if defined REFORM_SQL_INSTANCE powershell -file .github\appveyor-prepare-mssql.ps1
- set PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%GOPATH%\bin;%PATH%
- pacman -Rsc --noconfirm gcc
- go env
- go version
build_script:
- go mod download
# check that it is still possible to install reform without modules
- env GO111MODULE=off go get -v ./...
- reform -version
- reform-db -version
- make init
test_script:
- make test-unit
- make %REFORM_MAKE_TARGET%
- make merge-cover
# TODO test again with updated deps
- make ci-check-changes
on_success:
- curl -s -o codecov https://codecov.io/bash
- bash codecov -f coverage.txt -X fix -e REFORM_MAKE_TARGET,REFORM_SQL_INSTANCE