File tree 3 files changed +27
-3
lines changed
3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 7
7
- checkout
8
8
- run : brew update
9
9
- run : brew install shellcheck
10
- - run : shellcheck setup -e SC2039
10
+ - run : shellcheck setup -e SC2039 -e SC1091
11
11
- run :
12
12
name : Run Setup Script
13
13
command : ./setup
@@ -23,15 +23,15 @@ jobs:
23
23
- run : ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
24
24
- run : apt update
25
25
- run : apt install -y shellcheck sudo
26
- - run : shellcheck setup -e SC2039
26
+ - run : shellcheck setup -e SC2039 -e SC1091
27
27
- run : ./setup
28
28
test-fedora :
29
29
docker :
30
30
- image : fedora:33
31
31
steps :
32
32
- checkout
33
33
- run : dnf -y install ShellCheck sudo util-linux-user
34
- - run : shellcheck setup -e SC2039
34
+ - run : shellcheck setup -e SC2039 -e SC1091
35
35
- run : ./setup
36
36
37
37
workflows :
Original file line number Diff line number Diff line change @@ -113,19 +113,39 @@ systemd_enable_docker_on_restart() {
113
113
sudo systemctl enable docker
114
114
}
115
115
116
+ install_circleci_cli () {
117
+ curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | sudo bash
118
+ }
119
+
120
+ deb_add_and_install_terraform () {
121
+ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
122
+ sudo apt-add-repository " deb [arch=$( dpkg --print-architecture) ] https://apt.releases.hashicorp.com $( lsb_release -cs) main"
123
+ sudo apt-get install -y terraform
124
+ }
125
+
126
+ dnf_add_and_install_terraform () {
127
+ sudo dnf install -y dnf-plugins-core
128
+ sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/$release /hashicorp.repo
129
+ sudo dnf -y install terraform
130
+ }
131
+
116
132
case $OS in
117
133
Fedora)
118
134
fancy_echo " Installing packages using dnf"
119
135
sudo dnf groupinstall -y " C Development Tools and Libraries"
120
136
dnf_add_mongo_repo
137
+ dnf_add_and_install_terraform
121
138
sudo dnf -y install $FEDORA_PACKAGES
139
+ install_circleci_cli
122
140
fedora_enable_databases_on_restart
123
141
;;
124
142
Debian)
125
143
fancy_echo " Installing packages using apt"
126
144
deb_add_and_install_docker_ce
145
+ deb_add_and_install_terraform
127
146
apt_add_mongo_repo
128
147
sudo apt install -y -q $DEBIAN_PACKAGES
148
+ install_circleci_cli
129
149
debian_enable_databases_on_restart
130
150
systemd_enable_docker_on_restart
131
151
;;
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ brew "hub"
64
64
# Docker
65
65
cask "docker", args: { force: true }
66
66
67
+ # Devops Tools
68
+ brew "circleci"
69
+ brew "terraform"
70
+
67
71
# Image manipulation
68
72
brew "imagemagick"
69
73
You can’t perform that action at this time.
0 commit comments