diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c773c94f..a24fde6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,5 @@ jobs: - name: Run tests for all exercises run: | - ls -al $HOME/gnucobol/bin - export PATH=$HOME/gnucobol/bin:$PATH + bin/setup-environment bin/test diff --git a/bin/setup-environment b/bin/setup-environment new file mode 100755 index 00000000..74c0ce44 --- /dev/null +++ b/bin/setup-environment @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +$gnucobolDir="${HOME}/gnucobol" +export PATH="${gnucobolDir}/bin:${PATH}" +export COB_CONFIG_DIR="${gnucobolDir}/config" +export COB_COPY_DIR="${gnucobolDir}/copy" +export COB_CFLAGS="-I ${gnucobolDir}/include" +export COB_LDFLAGS="-L ${gnucobolDir}/lib" +export COB_LIBRARY_PATH="${gnucobolDir}/lib" +export COB_LIBS="${gnucobolDir}/bin/libcob-4.dll"