| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 1 | .install-rkorapclient: | 
 | 2 |   variables: | 
| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 3 |     # Enable caching for `apt-get`. | 
 | 4 |     APT_CACHE_DIR: ${CI_PROJECT_DIR}/apt-cache | 
 | 5 |     # Export `noninteractive` frontend to prevent requesting user input | 
 | 6 |     DEBIAN_FRONTEND: noninteractive | 
| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 7 |  | 
 | 8 |   cache: | 
| Marc Kupietz | 3ae6b2c | 2025-04-07 15:49:43 +0200 | [diff] [blame] | 9 |     key: pykorapclient | 
| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 10 |     paths: | 
 | 11 |       - apt-cache/ | 
| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 12 |  | 
 | 13 |   before_script: | 
 | 14 |     - source ./ci/section_helper.sh | 
 | 15 |  | 
 | 16 |     - start_section install_linux_packages "Installing missing Linux packages" | 
| Marc Kupietz | 3ae6b2c | 2025-04-07 15:49:43 +0200 | [diff] [blame] | 17 |     - mkdir -p $APT_CACHE_DIR | 
| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 18 |     - apt-get update | 
| Marc Kupietz | 3ae6b2c | 2025-04-07 15:49:43 +0200 | [diff] [blame] | 19 |     - apt-get install -y -o dir::cache::archives="$APT_CACHE_DIR" python3-pip | 
 | 20 |     - start_section installing "Installing RKorAPClient package" | 
| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 21 |     - export PATH=/usr/local/sbin:$PATH | 
| Marc Kupietz | 3ae6b2c | 2025-04-07 15:49:43 +0200 | [diff] [blame] | 22 |     - R -q -e "install.packages('pak')" | 
 | 23 |     - R -q -e "pak::pak('RKorAPClient')" | 
| Marc Kupietz | 2c2345b | 2024-01-28 14:25:25 +0100 | [diff] [blame] | 24 |     - end_section installing |