Skip to content

Commit c8bfc08

Browse files
install.sh: never install the C library by default
1 parent 84bd01a commit c8bfc08

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
sdk: 3.5.2
2828
- name: Install ObjectBox C library
29-
run: ./install.sh
29+
run: ./install.sh --install # Install globally for generator integration tests
3030
- name: Integration test
3131
run: ./generator/test.sh
3232

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@ test-generator:linux:x64:
5959
tags: [ x64, linux, docker ]
6060
image: dart:$DART_VERSION
6161
script:
62-
- ./install.sh
62+
- ./install.sh --install # Install globally for generator integration tests
6363
- ./generator/test.sh
6464

6565
# Runs generator and objectbox unit tests.
6666
.test:
6767
extends: .cache
6868
stage: test
6969
script:
70-
- ./install.sh
7170
# Generator tests
7271
- cd generator
7372
- dart pub get
7473
- dart test
7574
# ObjectBox tests
7675
- cd ../objectbox_test
76+
- ../install.sh
7777
- dart pub get
7878
- dart run build_runner build
7979
# Set concurrency=1 to run only one test suite (== test file) at a time.

install.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,4 @@ cLibVersion=4.0.0
99
os=$(uname)
1010
cLibArgs="$*"
1111

12-
# if there's no tty this is probably part of a docker build - therefore we install the c-api explicitly
13-
if [[ "$os" != MINGW* ]] && [[ "$os" != CYGWIN* ]] && [[ "$cLibArgs" != *"--install"* ]]; then
14-
tty -s || cLibArgs="${cLibArgs} --install"
15-
fi
16-
17-
1812
bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-c/main/download.sh) ${cLibArgs} ${cLibVersion}

0 commit comments

Comments
 (0)