forked from fossology/fossology
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace common unicode with ASCII. Signed-off-by: Gaurav Mishra <[email protected]>
- Loading branch information
Showing
9 changed files
with
211 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Copyright 2021 Anupam Ghosh <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0 AND LGPL-2. | ||
# Copyright 2021 Anupam Ghosh <[email protected]>, | ||
# Gaurav Mishra <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0 AND LGPL-2.1 | ||
|
||
name: c tests | ||
|
||
|
@@ -12,13 +13,16 @@ on: | |
jobs: | ||
C-tests: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['7.4'] # Can be extended in future | ||
services: | ||
postgres: | ||
image: postgres:12 | ||
env: | ||
POSTGRES_DB: fossology | ||
POSTGRES_PASSWORD: fossy | ||
POSTGRES_USER: fossy | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
ports: | ||
- 5432:5432 | ||
# Set health checks to wait until postgres has started | ||
|
@@ -32,21 +36,35 @@ jobs: | |
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 50 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libcppunit-dev | ||
sudo ./utils/fo-installdeps -y -e | ||
export PATH="/usr/lib/ccache/:$PATH" | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: mbstring, gd, xml, zip, json, sqlite3, curl | ||
env: | ||
fail-fast: true | ||
|
||
- name: Setup test database | ||
env: | ||
DATABASE_HOST: 127.0.0.1 | ||
DATABASE_PORT: 5432 | ||
PGHOST: 127.0.0.1 | ||
PGPORT: 5432 | ||
run: | | ||
sudo ./utils/prepare-test | ||
./utils/prepare-test -afty | ||
#remove test all as delagent is failing | ||
#remove test all as delagent is failing | ||
- name: Unit tests | ||
run: make all phpvendors test-cli test-copyright test-lib test-nomos test-ojo test-reuser test-scheduler test-spdx2 test-unifiedreport test-www | ||
env: | ||
PGHOST: 127.0.0.1 | ||
PGPORT: 5432 | ||
run: | | ||
make all phpvendors test-cli test-copyright test-lib test-monk \ | ||
test-nomos test-ojo test-reuser test-scheduler test-spdx2 \ | ||
test-unifiedreport test-www |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.