Skip to content

Commit

Permalink
ci: improve scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jan 18, 2024
1 parent 53ce3de commit 7bc038f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:

- name: Setup Postgres
run: |
set -e
git clone --depth 1 https://github.com/akrherz/iem-database.git database
git clone --depth 1 https://github.com/akrherz/ci_tooling.git .ci_tooling
. .ci_tooling/postgres.sh
Expand Down Expand Up @@ -76,7 +77,10 @@ jobs:
- name: Configure Webfarm Server
run: |
. .ci_tooling/iemwebfarm.sh
set -e
cd .ci_tooling
. iemwebfarm.sh
cd ..
sudo mkdir -p /mesonet/www/logs
sudo ln -s `pwd` /opt/iem
sudo ln -s $HOME/micromamba /opt/miniconda3
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/mapserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
- name: Setup CI from ci-tooling
run: |
set -e
git clone --depth 1 https://github.com/akrherz/iem-database.git database
git clone --depth 1 https://github.com/akrherz/ci_tooling.git .ci_tooling
. .ci_tooling/iemwebfarm.sh
. .ci_tooling/postgres.sh
cd ci_tooling
. iemwebfarm.sh
. postgres.sh
cd ..
sudo ln -s `pwd` /opt/iem
sudo ln -s $HOME/miniconda /opt/miniconda3
sudo apt-get install mapserver-bin
Expand All @@ -32,4 +35,5 @@ jobs:
- name: Run map2img
run: |
set -e
bash test/run_mapserver.sh

0 comments on commit 7bc038f

Please sign in to comment.