Add CI/CD simulation files
This commit is contained in:
parent
20a3279dee
commit
d0c9a1f935
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "Building..."
|
||||||
|
sleep 2
|
||||||
|
echo "Done"
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "Building..."
|
||||||
|
sleep 2
|
||||||
|
echo "Done"
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "CI: Building..."
|
||||||
|
./build.sh
|
||||||
|
echo "CI: Testing..."
|
||||||
|
./test.sh || { echo "Tests failed"; exit 1; }
|
||||||
|
echo "CD: Deploying..."
|
||||||
|
cp build.sh ../deployed-script.sh
|
||||||
|
echo "Deployed!"
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if [ 1 -eq 1 ]; then
|
||||||
|
echo "Test passed"
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue