Skip to content

Commit 159ca55

Browse files
committed
Update
1 parent 992bc2e commit 159ca55

55 files changed

Lines changed: 6916 additions & 5717 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package-lock.json
77

88
# IDE directory
99
.idea
10+
.vscode
1011

1112
# Test
1213
coverage

.gitlab-ci.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -16,77 +16,77 @@ variables:
1616
# Application building
1717

1818
building:
19-
stage: build
20-
only:
21-
- master # Restricts the building to the master branch.
22-
- develop # Restricts the building to the develop branch.
23-
script:
24-
- echo "--Building--"
19+
stage: build
20+
only:
21+
- master # Restricts the building to the master branch.
22+
- develop # Restricts the building to the develop branch.
23+
script:
24+
- echo "--Building--"
2525

26-
# npm
26+
# npm
2727

28-
- npm install # Installs the dependencies.
28+
- npm install # Installs the dependencies.
2929

30-
# Swagger
30+
# Swagger
3131

32-
- npm run swagger # Generates the application documentation (Swagger).
32+
- npm run swagger # Generates the application documentation (Swagger).
3333

34-
# CodeQL: Directories
34+
# CodeQL: Directories
3535

36-
- New-Item -Name "lib" -ItemType "directory" # Creates the lib directory.
37-
- cd lib
38-
- New-Item -Name "codeql-cli" -ItemType "directory" # Creates the codeql-cli directory.
39-
- New-Item -Name "codeql-lib" -ItemType "directory" # Creates the codeql-lib directory.
40-
- cd ..
36+
- New-Item -Name "lib" -ItemType "directory" # Creates the lib directory.
37+
- cd lib
38+
- New-Item -Name "codeql-cli" -ItemType "directory" # Creates the codeql-cli directory.
39+
- New-Item -Name "codeql-lib" -ItemType "directory" # Creates the codeql-lib directory.
40+
- cd ..
4141

42-
# CodeQL: CLI
42+
# CodeQL: CLI
4343

44-
- git clone git@gitlab.unamur.be:denim/codeql-cli-2.13.0.git lib/codeql-cli # Downloads the CodeQL CLI.
45-
- '& ${env:ProgramFiles}\7-Zip\7z.exe x -olib/codeql-cli lib/codeql-cli/codeql-cli.zip' # Unzips the CodeQL CLI.
46-
- Remove-Item -Path lib/codeql-cli/codeql-cli.zip
47-
#- Move-Item -Path ${env:ProgramFiles}/codeql/codeql-cli -Destination lib/codeql-cli # CodeQL CLI moving to right folder.
44+
- git clone git@gitlab.unamur.be:denim/codeql-cli-2.13.0.git lib/codeql-cli # Downloads the CodeQL CLI.
45+
- '& ${env:ProgramFiles}\7-Zip\7z.exe x -olib/codeql-cli lib/codeql-cli/codeql-cli.zip' # Unzips the CodeQL CLI.
46+
- Remove-Item -Path lib/codeql-cli/codeql-cli.zip
47+
#- Move-Item -Path ${env:ProgramFiles}/codeql/codeql-cli -Destination lib/codeql-cli # CodeQL CLI moving to right folder.
4848

49-
# CodeQL: libraries
49+
# CodeQL: libraries
5050

51-
- git clone git@gitlab.unamur.be:denim/codeql-lib-2.13.0.git lib/codeql-lib # Downloads the CodeQL CLI.
52-
- '& ${env:ProgramFiles}\7-Zip\7z.exe x -olib/codeql-lib lib/codeql-lib/codeql-lib.zip' # Unzips the CodeQL CLI.
53-
- Remove-Item -Path lib/codeql-lib/codeql-lib.zip
54-
#- Move-Item -Path ${env:ProgramFiles}/codeql/codeql-lib -Destination lib/codeql-lib # CodeQL CLI moving to right folder.
51+
- git clone git@gitlab.unamur.be:denim/codeql-lib-2.13.0.git lib/codeql-lib # Downloads the CodeQL CLI.
52+
- '& ${env:ProgramFiles}\7-Zip\7z.exe x -olib/codeql-lib lib/codeql-lib/codeql-lib.zip' # Unzips the CodeQL CLI.
53+
- Remove-Item -Path lib/codeql-lib/codeql-lib.zip
54+
#- Move-Item -Path ${env:ProgramFiles}/codeql/codeql-lib -Destination lib/codeql-lib # CodeQL CLI moving to right folder.
5555

56-
# Environment variables
56+
# Environment variables
5757

58-
- New-Item -Name ".env" -ItemType "file" # Creates the environment variables file.
59-
- Add-Content .env 'FILE_SYSTEM_SEPARATOR="\"' # Adds the file system separator environment variable for Windows.
60-
- New-Item -Name "TEMP" -ItemType "directory" # Creates the temporary working directory for analysis files.
58+
- New-Item -Name ".env" -ItemType "file" # Creates the environment variables file.
59+
- Add-Content .env 'FILE_SYSTEM_SEPARATOR="\"' # Adds the file system separator environment variable for Windows.
60+
- New-Item -Name "TEMP" -ItemType "directory" # Creates the temporary working directory for analysis files.
6161

6262
# Unit testing
6363

6464
unit-testing:
65-
stage: test
66-
only:
67-
- master # Restricts the unit testing to the master branch.
68-
- develop # Restricts the unit testing to the develop branch.
69-
variables:
70-
GIT_STRATEGY: none # Skips the 'git fetch'.
71-
script:
72-
- echo "--Unit testing--"
73-
- npm run test_unit # Starts the unit testing.
65+
stage: test
66+
only:
67+
- master # Restricts the unit testing to the master branch.
68+
- develop # Restricts the unit testing to the develop branch.
69+
variables:
70+
GIT_STRATEGY: none # Skips the 'git fetch'.
71+
script:
72+
- echo "--Unit testing--"
73+
- npm run test_unit # Starts the unit testing.
7474

7575
# Integration testing
7676

7777
integration-testing:
78-
stage: test
79-
only:
80-
- master # Restricts the integration testing to the master branch.
81-
- develop # Restricts the unit testing to the develop branch.
82-
variables:
83-
GIT_STRATEGY: none # Skips the 'git fetch'.
84-
needs: [ unit-testing ]
85-
script:
86-
- echo "--Integration testing--"
87-
- Set-Content .env 'FILE_SYSTEM_SEPARATOR="/"' # Sets the file system separator environment variable for Linux.
88-
- docker-compose up -d # Sets up and starts the docker container via docker-compose started in background.
89-
- npm run test_integration # Launches the integration testing.
78+
stage: test
79+
only:
80+
- master # Restricts the integration testing to the master branch.
81+
- develop # Restricts the unit testing to the develop branch.
82+
variables:
83+
GIT_STRATEGY: none # Skips the 'git fetch'.
84+
needs: [unit-testing]
85+
script:
86+
- echo "--Integration testing--"
87+
- Set-Content .env 'FILE_SYSTEM_SEPARATOR="/"' # Sets the file system separator environment variable for Linux.
88+
- docker-compose up -d # Sets up and starts the docker container via docker-compose started in background.
89+
- npm run test_integration # Launches the integration testing.
9090

9191
# Application deployment
9292

@@ -119,4 +119,4 @@ cleaning:
119119
- docker rmi $(docker images -a -q) # Removes ALL the images on the host machine runner.
120120
- New-Item -Path ../ -Name "empty" -ItemType "directory" # Creates an empty folder for file deletion.
121121
- robocopy ../empty ./ /MIR; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null } # Removes ALL the source files on the host machine runner.
122-
- rm ..\empty\
122+
- rm ..\empty\

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
evaluation
3+
coverage
4+
lib
5+
.vscode
6+
.idea
7+
8+
package-lock.json
9+
yarn.lock
10+
.env

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none"
8+
}

INSTALL.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
### Prerequisites
66

77
1. NodeJS:
8-
- [Install NodeJS](https://nodejs.org/fr/download).
8+
9+
- [Install NodeJS](https://nodejs.org/fr/download).
10+
911
2. Docker:
10-
- Linux : [Install Docker Engine](https://docs.docker.com/engine/install/) or [Install Docker Desktop](https://docs.docker.com/desktop/setup/install/linux/).
11-
- Windows : [Install Docker Desktop](https://docs.docker.com/desktop/setup/install/windows-install/).
12-
- MacOS : [Install Docker Desktop](https://docs.docker.com/desktop/setup/install/mac-install/).
12+
13+
- Linux : [Install Docker Engine](https://docs.docker.com/engine/install/) or [Install Docker Desktop](https://docs.docker.com/desktop/setup/install/linux/).
14+
- Windows : [Install Docker Desktop](https://docs.docker.com/desktop/setup/install/windows-install/).
15+
- MacOS : [Install Docker Desktop](https://docs.docker.com/desktop/setup/install/mac-install/).
1316

1417
### Launching
1518

@@ -21,13 +24,14 @@ You have the tree following options.
2124

2225
#### Launching from source code
2326

24-
- [Download the last CodeQL CLI 2.13.0 binaries zip file](https://github.com/github/codeql-cli-binaries/releases)
25-
and extract it at `/lib/codeql-cli`).
27+
- Create the `/lib` directory and then the `/lib/codeql-cli` and `/lib/codeql-lib` directories.
2628

27-
- [Download last CodeQL 2.13.0 libraries](https://github.com/github/codeql) and extract them next to CodeQL CLI at
28-
`/lib/codeql-lib`).
29+
- [Download the last CodeQL CLI 2.13.0 binaries zip file](https://github.com/github/codeql-cli-binaries/releases) and extract it at `/lib/codeql-cli`.
30+
31+
- [Download last CodeQL 2.13.0 libraries](https://github.com/github/codeql) and extract them next to CodeQL CLI at `/lib/codeql-lib`.
2932

3033
- Open the project in an IDE and install the dependencies.
34+
3135
```shell
3236
npm install
3337
```
@@ -39,10 +43,12 @@ You have the tree following options.
3943
```
4044

4145
- Create an `.env` file with the following content.
46+
4247
```shell
4348
# Windows
4449
FILE_SYSTEM_SEPARATOR="\"
4550
```
51+
4652
```shell
4753
# Linux
4854
FILE_SYSTEM_SEPARATOR="/"
@@ -59,13 +65,14 @@ The app runs at [http://localhost:3000](http://localhost:3000).
5965
6066
#### Launching from source code with Docker
6167
62-
- [Download the last CodeQL CLI 2.13.0 binaries zip file](https://github.com/github/codeql-cli-binaries/releases)
63-
and extract it at `/lib/codeql-cli`).
68+
- Create the `/lib` directory and then the `/lib/codeql-cli` and `/lib/codeql-lib` directories.
69+
70+
- [Download the last CodeQL CLI 2.13.0 binaries zip file](https://github.com/github/codeql-cli-binaries/releases) and extract it at `/lib/codeql-cli`.
6471
65-
- [Download last CodeQL 2.13.0 libraries](https://github.com/github/codeql) and extract them next to CodeQL CLI at
66-
`/lib/codeql-lib`).
72+
- [Download last CodeQL 2.13.0 libraries](https://github.com/github/codeql) and extract them next to CodeQL CLI at `/lib/codeql-lib`.
6773
6874
- Open the project in an IDE and install the dependencies.
75+
6976
```shell
7077
npm install
7178
```
@@ -77,10 +84,12 @@ The app runs at [http://localhost:3000](http://localhost:3000).
7784
```
7885
7986
- Create an `.env` file with the following content.
87+
8088
```shell
8189
# Windows
8290
FILE_SYSTEM_SEPARATOR="\"
8391
```
92+
8493
```shell
8594
# Linux
8695
FILE_SYSTEM_SEPARATOR="/"
@@ -98,5 +107,5 @@ A `docker-compose.yml` file also exists at the root in order to launch easily a
98107
docker-compose up
99108
```
100109

101-
Warning! This command must be executed at the location of the `docker-compose.yml` file and have to be run as with the
102-
right privileges (administrator).
110+
⚠️ This command must be executed at the location of the `docker-compose.yml` file and have to be run as with the
111+
right privileges (administrator).
File renamed without changes.

0 commit comments

Comments
 (0)