Skip to content

Commit bc0590d

Browse files
committed
Extend CI list with Github actions
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
1 parent 5bcb784 commit bc0590d

File tree

2 files changed

+109
-69
lines changed

2 files changed

+109
-69
lines changed

.github/workflows/gh-actions.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: JerryScript CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
RUNNER: tools/run-tests.py
11+
12+
jobs:
13+
Checks:
14+
runs-on: ubuntu-18.04
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Initializtaion
18+
run: sudo apt-get install doxygen vera++ cppcheck pylint pylint python-serial -q
19+
- name: Signed-off
20+
run: $RUNNER --check-signed-off=travis
21+
- name: Doxygen
22+
run: $RUNNER --check-doxygen
23+
- name: Vera++
24+
run: $RUNNER --check-vera
25+
- name: License
26+
run: $RUNNER --check-license
27+
- name: Magic strings
28+
run: $RUNNER --check-magic-strings
29+
- name: Pylint
30+
run: $RUNNER --check-pylint
31+
- name: Cppcheck
32+
run: $RUNNER --check-cppcheck
33+
34+
Linux_x86-64_Build_Correctness_Debugger_Tests:
35+
runs-on: ubuntu-18.04
36+
steps:
37+
- uses: actions/checkout@v1
38+
- name: Correctness - jerry-tests
39+
run: $RUNNER --jerry-tests -q
40+
- name: Debugger Tests
41+
run: $RUNNER --jerry-debugger -q
42+
43+
Linux_x86_cpointer-32bit_Build_Correctness_Tests:
44+
runs-on: ubuntu-18.04
45+
env:
46+
BUILD_OPTIONS: --buildoptions=--compile-flag=-m32,--cpointer-32bit=on -q
47+
steps:
48+
- uses: actions/checkout@v1
49+
- name: Initializtaion
50+
run: sudo apt-get install gcc-multilib
51+
- name: Correctness - jerry-tests
52+
run: $RUNNER --jerry-tests $BUILD_OPTIONS -q
53+
54+
OSX_x86-64_Build_Correctness_Unit_Tests:
55+
runs-on: macos-10.15
56+
steps:
57+
- uses: actions/checkout@v1
58+
- name: Correctness - jerry-tests
59+
run: $RUNNER --jerry-tests -q
60+
- name: Unit Tests
61+
run: $RUNNER --unittests -q
62+
63+
Conformance_Tests_ES5_1:
64+
runs-on: ubuntu-18.04
65+
steps:
66+
- uses: actions/checkout@v1
67+
- name: Test262 - ES5.1
68+
run: $RUNNER --test262
69+
70+
Conformance_Tests_ES2015:
71+
runs-on: ubuntu-18.04
72+
steps:
73+
- uses: actions/checkout@v1
74+
- name: Test262 - ES2015
75+
run: $RUNNER --test262-es2015
76+
77+
Unit_Tests:
78+
runs-on: ubuntu-18.04
79+
steps:
80+
- uses: actions/checkout@v1
81+
- name: Unit Tests
82+
run: $RUNNER --unittests -q
83+
84+
ASAN_Tests:
85+
runs-on: ubuntu-18.04
86+
env:
87+
ASAN_OPTIONS: detect_stack_use_after_return=1:check_initialization_order=true:strict_init_order=true
88+
SKIP_LIST: --skip-list=parser-oom.js,parser-oom2.js,stack-limit.js,regression-test-issue-2190.js,regression-test-issue-2258-2963.js,regression-test-issue-2448.js,regression-test-issue-2905.js,regression-test-issue-3785.js
89+
BUILD_OPTIONS: --buildoptions=--stack-limit=0,--compile-flag=-fsanitize=address,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--compile-flag=-O2,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold
90+
steps:
91+
- uses: actions/checkout@v1
92+
- name: Initializtaion
93+
run: sudo apt-get install gcc-multilib
94+
- name: ASAN - jerry-tests
95+
run: $RUNNER --jerry-tests $SKIP_LIST $BUILD_OPTIONS -q
96+
97+
UBSAN_Tests:
98+
runs-on: ubuntu-18.04
99+
env:
100+
UBSAN_OPTIONS: print_stacktrace=1
101+
SKIP_LIST: --skip-list=parser-oom.js,parser-oom2.js
102+
BUILD_OPTIONS: --buildoptions=--compile-flag=-fsanitize=undefined,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold
103+
steps:
104+
- uses: actions/checkout@v1
105+
- name: Initializtaion
106+
run: sudo apt-get install gcc-multilib
107+
- name: UBSAN - jerry-tests
108+
run: $RUNNER --jerry-tests $SKIP_LIST $BUILD_OPTIONS -q
109+

.travis.yml

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,6 @@ script: tools/run-tests.py $OPTS
1111
# All the job definitions in the matrix.
1212
matrix:
1313
include:
14-
- name: "Checks"
15-
script:
16-
- tools/run-tests.py --check-signed-off=travis --check-doxygen --check-vera --check-license --check-magic-strings --check-pylint
17-
- travis_wait 40 tools/run-tests.py --check-cppcheck
18-
addons:
19-
apt:
20-
packages: [doxygen, cppcheck, vera++, pylint]
21-
22-
- name: "Linux/x86-64 Build, Correctness & Debugger Tests"
23-
env:
24-
- OPTS="--quiet --jerry-tests --jerry-debugger"
25-
26-
- name: "Linux/x86 (cpointer-32bit) Build & Correctness Tests"
27-
env:
28-
- OPTS="--quiet --jerry-tests --buildoptions=--compile-flag=-m32,--cpointer-32bit=on"
29-
addons:
30-
apt:
31-
packages: [gcc-multilib]
32-
3314
- name: "Linux/ARM Build & Correctness Tests"
3415
env:
3516
- OPTS="--quiet --jerry-tests --toolchain=cmake/toolchain_linux_armv7l.cmake --buildoptions=--linker-flag=-static"
@@ -45,56 +26,6 @@ matrix:
4526
- OPTS="--quiet --jerry-tests --buildoptions=--linker-flag=-static"
4627
- TIMEOUT=300
4728

48-
- name: "OSX/x86-64 Build, Correctness & Unit Tests"
49-
env:
50-
- OPTS="--quiet --jerry-tests --unittests"
51-
os: osx
52-
osx_image: xcode11.4
53-
addons:
54-
homebrew:
55-
packages: [cmake, cppcheck, vera++]
56-
57-
- name: "Build Tests"
58-
env:
59-
- OPTS="--buildoption-test"
60-
addons:
61-
apt:
62-
packages: [gcc-multilib]
63-
64-
- name: "Conformance Tests - ES5.1"
65-
env:
66-
- OPTS="--test262"
67-
68-
- name: "Conformance Tests - ES2015"
69-
env:
70-
- OPTS="--test262-es2015"
71-
72-
- name: "Unit Tests"
73-
env:
74-
- OPTS="--unittests"
75-
76-
- name: "ASAN Tests"
77-
env:
78-
# Skipping maximum stack usage related tests due to 'detect_stack_use_after_return=1' ASAN option.
79-
# For more detailed description: https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterReturn#compatibility
80-
- OPTS="--quiet --jerry-tests --skip-list=parser-oom.js,parser-oom2.js,stack-limit.js,regression-test-issue-2190.js,regression-test-issue-2258-2963.js,regression-test-issue-2448.js,regression-test-issue-2905.js,regression-test-issue-3785.js --buildoptions=--stack-limit=0,--compile-flag=-fsanitize=address,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--compile-flag=-O2,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold"
81-
- ASAN_OPTIONS=detect_stack_use_after_return=1:check_initialization_order=true:strict_init_order=true
82-
- TIMEOUT=600
83-
addons:
84-
apt:
85-
sources: ubuntu-toolchain-r-test
86-
packages: [gcc-multilib]
87-
88-
- name: "UBSAN Tests"
89-
env:
90-
- OPTS="--quiet --jerry-tests --skip-list=parser-oom.js,parser-oom2.js --buildoptions=--compile-flag=-fsanitize=undefined,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold"
91-
- UBSAN_OPTIONS=print_stacktrace=1
92-
- TIMEOUT=600
93-
addons:
94-
apt:
95-
sources: ubuntu-toolchain-r-test
96-
packages: [gcc-multilib]
97-
9829
- name: "Coverity Scan & SonarQube"
9930
env:
10031
# Declaration of the encrypted COVERITY_SCAN_TOKEN, created via the

0 commit comments

Comments
 (0)