-
Notifications
You must be signed in to change notification settings - Fork 44
167 lines (165 loc) · 4.52 KB
/
install.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: Test install.sh
on: [push]
jobs:
ubuntu-bash:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Install CLI
shell: bash
run: sudo ./scripts/install.sh --debug
- name: Test CLI
run: doppler --version
ubuntu-sh:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Uninstall bash
run: sudo apt-get remove -y --allow-remove-essential bash
- name: Verify bash has been removed
run: |
result=$(which bash) || true;
if [ -n "$result" ]; then
exit 1;
fi;
- name: Install CLI
shell: sh
run: sudo ./scripts/install.sh --debug
- name: Test CLI
run: doppler --version
ubuntu-wget:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Uninstall curl
run: sudo apt-get remove -y curl
- name: Verify curl has been removed
run: |
result=$(which curl) || true;
if [ -n "$result" ]; then
exit 1;
fi;
- name: Install CLI
run: sudo ./scripts/install.sh --debug
- name: Test CLI
run: doppler --version
ubuntu-no-gpg-fail:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Uninstall gnupg
run: |
sudo apt-get remove -y gnupg;
sudo mv /usr/bin/gpgv /usr/bin/gpgv.old
- name: Verify gnupg has been removed
run: |
result=$(which gpgv) || true;
if [ -n "$result" ]; then
exit 1;
fi;
- name: Install CLI
continue-on-error: true
run: sudo ./scripts/install.sh --debug
- name: Verify install failed
if: ${{ always() }}
run: |
result=$(which doppler) || true;
if [ -n "$result" ]; then
exit 1;
fi;
ubuntu-no-package-manager:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Install CLI
run: sudo ./scripts/install.sh --debug --no-package-manager
- name: Test CLI
run: doppler --version
ubuntu-no-install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Download CLI
run: sudo ./scripts/install.sh --debug --no-install
- name: Verify file existence
run: ls -l ./doppler-download.deb
ubuntu-no-install-no-package-manager:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Download CLI
run: sudo ./scripts/install.sh --debug --no-install --no-package-manager
- name: Verify file existence
run: ls -l ./doppler
ubuntu-custom-install-path:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Make temp directory
run: mkdir ./tmp
- name: Install CLI
run: sudo ./scripts/install.sh --debug --no-package-manager --install-path ./tmp
- name: Test CLI
run: ./tmp/doppler --version
macOS:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Install CLI
run: ./scripts/install.sh --debug
- name: Test CLI
run: doppler --version
macOS-no-install:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Install CLI
run: ./scripts/install.sh --debug --no-install
- name: Verify file existence
run: ls -l ./doppler
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
- name: Create user bin directory
shell: bash
run: mkdir -p $HOME/bin
- name: Install CLI
shell: bash
run: ./scripts/install.sh --debug --install-path $HOME/bin
- name: Test CLI
shell: bash
run: doppler --version