summaryrefslogtreecommitdiffstats
path: root/vendor/gopkg.in/testfixtures.v2/Taskfile.yml
blob: f12e1feaf317638cccb0186320ee2e180f852903 (plain)
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
# github.com/go-task/task

version: '2'

tasks:
  dl-deps:
    desc: Download cli deps
    cmds:
      - go get -u github.com/golang/lint/golint

  lint:
    desc: Runs golint
    cmds:
      - golint .

  test-free:
    desc: Test free databases (PG, MySQL and SQLite)
    cmds:
      - task: test-pg
      - task: test-mysql
      - task: test-sqlite

  test-all:
    desc: Test all databases (PG, MySQL, SQLite, SQLServer and Oracle)
    cmds:
      - task: test-pg
      - task: test-mysql
      - task: test-sqlite
      - task: test-sqlserver
      - task: test-oracle

  test-pg:
    desc: Test PostgreSQL
    cmds:
      - task: test-db
        vars: {DATABASE: postgresql}

  test-mysql:
    desc: Test MySQL
    cmds:
      - task: test-db
        vars: {DATABASE: mysql}

  test-sqlite:
    desc: Test SQLite
    cmds:
      - task: test-db
        vars: {DATABASE: sqlite}

  test-sqlserver:
    desc: Test SQLServer
    cmds:
      - task: test-db
        vars: {DATABASE: sqlserver}

  test-oracle:
    desc: Test Oracle
    cmds:
      - task: test-db
        vars: {DATABASE: oracle}

  test-db:
    cmds:
      - go test -v -tags {{.DATABASE}}