File tree Expand file tree Collapse file tree 6 files changed +31
-11
lines changed Expand file tree Collapse file tree 6 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+ # ###############################################################################
3+ # # File: git-lfs.sh
4+ # # Desc: Installs Git-lfs
5+ # ###############################################################################
6+
7+ # Source the helpers for use with the script
8+ source $HELPER_SCRIPTS /install.sh
9+
10+ GIT_LFS_REPO=" https://packagecloud.io/install/repositories/github/git-lfs"
11+
12+ # Install git-lfs
13+ curl -fsSL $GIT_LFS_REPO /script.deb.sh | bash
14+ apt-get install -y git-lfs
15+
16+ # Remove source repo's
17+ rm /etc/apt/sources.list.d/github_git-lfs.list
18+
19+ # Document apt source repo's
20+ echo " git-lfs $GIT_LFS_REPO " >> $HELPER_SCRIPTS /apt-sources.txt
21+
22+ invoke_tests " Tools" " Git-lfs"
Original file line number Diff line number Diff line change 88source $HELPER_SCRIPTS /install.sh
99
1010GIT_REPO=" ppa:git-core/ppa"
11- GIT_LFS_REPO=" https://packagecloud.io/install/repositories/github/git-lfs"
1211
1312# # Install git
1413add-apt-repository $GIT_REPO -y
@@ -21,20 +20,14 @@ cat <<EOF >> /etc/gitconfig
2120 directory = *
2221EOF
2322
24- # Install git-lfs
25- curl -fsSL $GIT_LFS_REPO /script.deb.sh | bash
26- apt-get install -y git-lfs
27-
2823# Install git-ftp
2924apt-get install git-ftp -y
3025
3126# Remove source repo's
3227add-apt-repository --remove $GIT_REPO
33- rm /etc/apt/sources.list.d/github_git-lfs.list
3428
3529# Document apt source repo's
3630echo " git-core $GIT_REPO " >> $HELPER_SCRIPTS /apt-sources.txt
37- echo " git-lfs $GIT_LFS_REPO " >> $HELPER_SCRIPTS /apt-sources.txt
3831
3932# Add well-known SSH host keys to known_hosts
4033ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> /etc/ssh/ssh_known_hosts
Original file line number Diff line number Diff line change @@ -241,15 +241,17 @@ Describe "Git" {
241241 " git --version" | Should - ReturnZeroExitCode
242242 }
243243
244- It " git-lfs" {
245- " git-lfs --version" | Should - ReturnZeroExitCode
246- }
247-
248244 It " git-ftp" {
249245 " git-ftp --version" | Should - ReturnZeroExitCode
250246 }
251247}
252248
249+ Describe " Git-lfs" {
250+ It " git-lfs" {
251+ " git-lfs --version" | Should - ReturnZeroExitCode
252+ }
253+ }
254+
253255Describe " Heroku" {
254256 It " heroku" {
255257 " heroku --version" | Should - ReturnZeroExitCode
Original file line number Diff line number Diff line change 217217 " {{template_dir}}/scripts/installers/gcc.sh" ,
218218 " {{template_dir}}/scripts/installers/gfortran.sh" ,
219219 " {{template_dir}}/scripts/installers/git.sh" ,
220+ " {{template_dir}}/scripts/installers/git-lfs.sh" ,
220221 " {{template_dir}}/scripts/installers/github-cli.sh" ,
221222 " {{template_dir}}/scripts/installers/google-chrome.sh" ,
222223 " {{template_dir}}/scripts/installers/google-cloud-cli.sh" ,
Original file line number Diff line number Diff line change @@ -300,6 +300,7 @@ build {
300300 " ${ path . root } /scripts/installers/gcc.sh" ,
301301 " ${ path . root } /scripts/installers/gfortran.sh" ,
302302 " ${ path . root } /scripts/installers/git.sh" ,
303+ " ${ path . root } /scripts/installers/git-lfs.sh" ,
303304 " ${ path . root } /scripts/installers/github-cli.sh" ,
304305 " ${ path . root } /scripts/installers/google-chrome.sh" ,
305306 " ${ path . root } /scripts/installers/google-cloud-cli.sh" ,
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ build {
257257 execute_command = " sudo sh -c '{{ .Vars }} {{ .Path }}'"
258258 scripts = [
259259 " ${ path . root } /scripts/installers/git.sh" ,
260+ " ${ path . root } /scripts/installers/git-lfs.sh" ,
260261 " ${ path . root } /scripts/installers/github-cli.sh" ,
261262 " ${ path . root } /scripts/installers/zstd.sh"
262263 ]
You can’t perform that action at this time.
0 commit comments