Skip to content

Commit

Permalink
install.sh: never install the C library by default
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed Oct 15, 2024
1 parent 84bd01a commit c8bfc08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
sdk: 3.5.2
- name: Install ObjectBox C library
run: ./install.sh
run: ./install.sh --install # Install globally for generator integration tests
- name: Integration test
run: ./generator/test.sh

Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,21 @@ 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.
.test:
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.
Expand Down
6 changes: 0 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit c8bfc08

Please sign in to comment.