From 67712a367ec7d7873d7d65cde59b0f9e02e67750 Mon Sep 17 00:00:00 2001 From: Uwe <13865709+greenrobot-team@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:09:42 +0200 Subject: [PATCH] install.sh: never install the C library by default --- .gitlab-ci.yml | 4 ++-- install.sh | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bcdef1e4..a3fe8be0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,7 +59,7 @@ test-generator:linux:x64: tags: [ x64, linux, docker ] image: dart:$DART_VERSION script: - - ./install.sh + - ./install.sh --install # Install globally for generator integration tests - ./generator/test.sh # Runs generator and objectbox unit tests. @@ -67,13 +67,13 @@ test-generator:linux:x64: extends: .cache stage: test script: - - ./install.sh # Generator tests - cd generator - dart pub get - dart test # ObjectBox tests - cd ../objectbox_test + - ../install.sh - dart pub get - dart run build_runner build # Set concurrency=1 to run only one test suite (== test file) at a time. diff --git a/install.sh b/install.sh index 48793dea..7ca187dd 100755 --- a/install.sh +++ b/install.sh @@ -9,10 +9,4 @@ cLibVersion=4.0.0 os=$(uname) cLibArgs="$*" -# if there's no tty this is probably part of a docker build - therefore we install the c-api explicitly -if [[ "$os" != MINGW* ]] && [[ "$os" != CYGWIN* ]] && [[ "$cLibArgs" != *"--install"* ]]; then - tty -s || cLibArgs="${cLibArgs} --install" -fi - - bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-c/main/download.sh) ${cLibArgs} ${cLibVersion}