#!/bin/bash set -e function checkout_code() { echo "๐Ÿ“ฅ [Checkout] Mengambil source code dari repository..." sleep 1 } function install_dependencies() { echo "๐Ÿ“ฆ [Install] Menginstal dependensi project..." sleep 1 } function run_linter() { echo "๐Ÿงน [Lint] Mengecek kode dengan linter..." sleep 1 } function run_tests() { echo "๐Ÿงช [Test] Menjalankan unit tests..." sleep 1 } function build_project() { echo "๐Ÿ—๏ธ [Build] Membangun project..." sleep 1 } function deploy_to_staging() { echo "๐Ÿš€ [Deploy] Men-deploy ke lingkungan staging..." sleep 1 } function run_integration_tests() { echo "๐Ÿ”— [Integration Test] Menjalankan integration tests..." sleep 1 } function deploy_to_production() { echo "๐Ÿš€ [Deploy] Men-deploy ke lingkungan production..." sleep 1 } function notify() { echo "๐Ÿ“ข [Notify] Mengirim notifikasi ke tim..." sleep 1 } function main() { echo "===== Simulasi CI/CD Dimulai =====" checkout_code install_dependencies run_linter run_tests build_project deploy_to_staging run_integration_tests deploy_to_production notify echo "===== Simulasi CI/CD Selesai =====" } main