Commit 475f1e95 authored by Sean's avatar Sean 🎨

First pass at gitlab ci compile support

Use services and scripts and psql to setup
the schema for the fsharp code to compile!
parent ce4acf40
Pipeline #116230845 passed with stage
in 1 minute and 7 seconds
build:
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
services:
- postgres:12.1-alpine
variables:
POSTGRES_DB: postgres
POSTGRES_USER: test_app
POSTGRES_PASSWORD: pass
script:
- apk add postgresql-client
- ./ci-pg-setup.sh
- CI=TRUE dotnet build
#!/bin/sh
echo "CREATE SCHEMA IF NOT EXISTS test AUTHORIZATION test_app;" \
| PGPASSWORD=pass psql -h postgres -U test_app -d postgres -f -
cat schema.sql | PGPASSWORD=pass psql -h postgres -U test_app -d postgres -f -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment