-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
76 lines (69 loc) · 1.78 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: minimal
dist: jammy
git:
depth: 5
jobs:
include:
- stage: Static tests
env:
- task=shellcheck
script:
- shellcheck chkdm
- stage: Static tests
language: node_js
node_js:
- "18"
env:
- task=editorconfig-check
install:
- npm i -g echint
script:
- echint
- stage: Ubuntu test
env:
- task=Ubuntu-runtime
before_script:
- echo $PATH
- type bash && bash --version
- echo -e '8.8.4.4\n1.0.0.1\n1.1' > CustomDNS.txt
- echo -e '223.5.5.5\n114.114.114.114' > CustomDNS2.txt
script:
- ./chkdm dnslow.me
- CustomDNSFile=./CustomDNS2.txt ./chkdm dnslow.me
- rm CustomDNS.txt && ./chkdm dnslow.me
- CustomDNSFile=./CustomDNS-not-exist.txt ./chkdm dnslow.me
- stage: Ubuntu test
env:
- task=Ubuntu-Make-install-uninstall
script:
- sudo make install && ls /usr/local/bin/chkdm
- sudo make uninstall && ! ls /usr/local/bin/chkdm
- stage: macOS test
os: osx
osx_image: xcode14.2
env:
- task=macOS-runtime
addons:
homebrew:
packages:
- bash
before_script:
- echo $PATH
- brew info bash
- which bash
- env bash --version
- echo -e '8.8.4.4\n1.0.0.1\n1.1' > CustomDNS.txt
- echo -e '223.5.5.5\n114.114.114.114' > CustomDNS2.txt
script:
- ./chkdm dnslow.me
- CustomDNSFile=./CustomDNS2.txt ./chkdm dnslow.me
- rm CustomDNS.txt && ./chkdm dnslow.me
- CustomDNSFile=./CustomDNS-not-exist.txt ./chkdm dnslow.me
- stage: macOS test
os: osx
osx_image: xcode14.2
env:
- task=macOS-Make-install-uninstall
script:
- sudo make install && ls /usr/local/bin/chkdm
- sudo make uninstall && ! ls /usr/local/bin/chkdm