mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Move tests to separate script
This commit is contained in:
parent
00ac1ba5e3
commit
354ae5c259
4 changed files with 18 additions and 3 deletions
6
.github/scripts/build.sh
vendored
6
.github/scripts/build.sh
vendored
|
@ -22,8 +22,8 @@ then
|
|||
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" && \
|
||||
sudo apt-get update -qq;
|
||||
sudo apt-get install -y clang-9 libkqueue-dev libpthread-workqueue-dev;
|
||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 10 \
|
||||
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-9;
|
||||
# sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 10 \
|
||||
# --slave /usr/bin/clang++ clang++ /usr/bin/clang++-9;
|
||||
export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/clang-7.0.0\/bin//');
|
||||
if [ "$RUNTIME_VERSION" = "gnustep-2.0" ];
|
||||
then
|
||||
|
@ -49,4 +49,4 @@ export GNUSTEP_MAKEFILES=$HOME/staging/share/GNUstep/Makefiles;
|
|||
|
||||
# script
|
||||
./configure $BASE_ABI || (cat config.log && false);
|
||||
make && make install && make check || (cat Tests/tests.log && false);
|
||||
make && make install
|
||||
|
|
6
.github/scripts/test.sh
vendored
Normal file
6
.github/scripts/test.sh
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
#! /usr/bin/env sh
|
||||
|
||||
set -ex
|
||||
|
||||
Echo "Running unit tests"
|
||||
make check || (cat Tests/tests.log && false);
|
4
.github/workflows/main-clang.yml
vendored
4
.github/workflows/main-clang.yml
vendored
|
@ -23,3 +23,7 @@ jobs:
|
|||
# Runs a single command using the runners shell
|
||||
- name: Build source
|
||||
run: ./.github/scripts/build.sh
|
||||
|
||||
# Run the tests
|
||||
- name: Run Tests
|
||||
run: ./.github/scripts/test.sh
|
||||
|
|
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
@ -23,3 +23,8 @@ jobs:
|
|||
# Runs a single command using the runners shell
|
||||
- name: Build source
|
||||
run: ./.github/scripts/build.sh
|
||||
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run Tests
|
||||
run: ./.github/scripts/test.sh
|
||||
|
||||
|
|
Loading…
Reference in a new issue