-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
52 lines (46 loc) · 960 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
stages:
- build
- test
build_js:
image: emscripten/emsdk
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get -qq -y update
- apt-get -qq install -y --no-install-recommends ninja-build
script:
- ./build-emscripten.sh
- cd emscripten/js
- npm install
- npm run-script build-prod
- cp -r dist ../..
artifacts:
paths:
- dist
build_native:
image: rikorose/gcc-cmake:gcc-10
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make
- cd ..
- mkdir -p dist
- cp build/bin/scan-*/pqrs-* dist
artifacts:
paths:
- dist
test_native_basic:
image: python:3.9-buster
dependencies:
- build_native
stage: test
script:
- ls dist
- cd test
- pip install -r requirements.txt
- ./test_basic_testcases.py ../dist/pqrs-scan-one