From ed09f3899dbcbe9f734d4356de8069b0a2d69df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matu=CC=81s=CC=8C=20Tomlein?= Date: Wed, 4 Oct 2023 20:12:49 +0200 Subject: [PATCH] Add post clone script --- ci_scripts/ci_post_clone.sh | 9 +++++++++ seelog.xcodeproj/project.pbxproj | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100755 ci_scripts/ci_post_clone.sh diff --git a/ci_scripts/ci_post_clone.sh b/ci_scripts/ci_post_clone.sh new file mode 100755 index 0000000..fa7c1eb --- /dev/null +++ b/ci_scripts/ci_post_clone.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +cd ../seelog +if [ -e generated.sqlite ] +then + echo "Database exists" +else + curl https://f001.backblazeb2.com/file/referred/seelog/generated.sqlite --output generated.sqlite +fi diff --git a/seelog.xcodeproj/project.pbxproj b/seelog.xcodeproj/project.pbxproj index 463e9cf..14360c4 100644 --- a/seelog.xcodeproj/project.pbxproj +++ b/seelog.xcodeproj/project.pbxproj @@ -135,6 +135,7 @@ /* Begin PBXFileReference section */ 6B04671024D1FE83009892AF /* SelectedYearState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectedYearState.swift; sourceTree = ""; }; + 6B124B282ACDE1F60086F3E6 /* ci_post_clone.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ci_post_clone.sh; sourceTree = ""; }; 6B1D517D278A1E8F009D6B07 /* CountriesBarChartView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CountriesBarChartView.swift; sourceTree = ""; }; 6B1D517F278A1FD2009D6B07 /* CitiesBarChartView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CitiesBarChartView.swift; sourceTree = ""; }; 6B1D5181278A20AA009D6B07 /* ContinentsBarChartView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContinentsBarChartView.swift; sourceTree = ""; }; @@ -274,6 +275,14 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 6B124B272ACDE1CF0086F3E6 /* ci_scripts */ = { + isa = PBXGroup; + children = ( + 6B124B282ACDE1F60086F3E6 /* ci_post_clone.sh */, + ); + path = ci_scripts; + sourceTree = ""; + }; 6B1D517C278A1E7B009D6B07 /* Charts */ = { isa = PBXGroup; children = ( @@ -304,6 +313,7 @@ 6B521D0123B74C7A00570CF2 = { isa = PBXGroup; children = ( + 6B124B272ACDE1CF0086F3E6 /* ci_scripts */, 6B521D0C23B74C7A00570CF2 /* seelog */, 6B521D2323B74C7F00570CF2 /* seelogTests */, 6B521D2E23B74C7F00570CF2 /* seelogUITests */,