-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
58 lines (45 loc) · 1.16 KB
/
.travis.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
language: go
os: linux
dist: bionic
services:
- docker
install: skip
jobs:
allow_failures:
- name: coverage
include:
# only on PR and main
- if: type = pull_request OR branch = main
os: linux
name: coverage
env:
- TEST_INSTANCE=test-coverage
- COVERALLS_TOKEN=$COVERALLS_TOKEN
# all tests only on PR
- if: type = pull_request
os: linux
env: TEST_INSTANCE=test-testsuite
- if: type = pull_request
os: windows
env: TEST_INSTANCE=test-windows
- if: type = pull_request
os: linux
env: TEST_INSTANCE=test-alpine
- if: type = pull_request
os: linux
env: TEST_INSTANCE=test-alpine-user
- if: type = pull_request
os: linux
env: TEST_INSTANCE=test-alpine-nolfs
- if: type = pull_request
os: linux
env: TEST_INSTANCE=test-corehookspath
- if: type = pull_request
os: linux
env: TEST_INSTANCE=test-whitespace
- if: type = pull_request
os: linux
env: TEST_INSTANCE=test-lint
script:
- echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
- bash "tests/${TEST_INSTANCE}.sh"