Skip to content
Snippets Groups Projects
Commit 3069a06a authored by Erick Hitter's avatar Erick Hitter
Browse files

Working build, at long last!

parent 9d85df09
No related branches found
No related tags found
1 merge request!1MVP build process
Pipeline #562 passed
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -6,14 +6,17 @@ stages:
- test
- deploy
#test_build_script:
# stage: test_pre_build
# image: koalaman/shellcheck-alpine:latest
# script:
# - shellcheck ./scripts/build.sh
test_build_script:
stage: test_pre_build
image: koalaman/shellcheck-alpine:latest
script:
- shellcheck ./scripts/build.sh
build_nginx:
stage: build
script:
- chmod +x ./scripts/build.sh
- ./scripts/build.sh
artifacts:
paths:
- src/nginx/objs/nginx
......@@ -51,7 +51,7 @@ git clone -q --recursive --depth 1 https://github.com/nginx/nginx.git -b "$NGINX
# Configure nginx
echo ""
echo "CONFIGURE NGINX"
cd "$NGINX_SRC_DIR" || exit
cd "$NGINX_SRC_DIR" || exit 1
./auto/configure \
--prefix=/etc/nginx \
......@@ -99,5 +99,10 @@ echo "BUILDING NGINX"
echo "Using $(nproc) jobs"
make
ls -la "$NGINX_SRC_DIR"
ls -la "$NGINX_SRC_DIR/objs"
if [[ ! -f "$NGINX_SRC_DIR/objs/nginx" ]]; then
exit 1
fi
# Verify build works
cd "$NGINX_SRC_DIR/objs" || exit 1
./nginx -V
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment