Skip to content

Commit 5ab343d

Browse files
committed
Add ARM cross build and QEMU user space emulated tests to the CI
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
1 parent 866ef5b commit 5ab343d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sudo: required
66

77
before_install:
88
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tools/apt-get-install-deps.sh; fi
9+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tools/apt-get-install-qemu-arm.sh; fi
910
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tools/brew-install-deps.sh; fi
1011

1112
install: make prerequisites
@@ -15,6 +16,7 @@ script: "make -j VERBOSE=1 NINJA=1 $TARGET"
1516
env:
1617
- TARGET="check-signed-off check-vera check-cppcheck"
1718
- TARGET="build.linux test-js-precommit"
19+
- TARGET="build.linux test-js-precommit" TOOLCHAIN=build/configs/toolchain_linux_armv7l-hf.cmake TIMEOUT=60
1820
- TARGET=build.mcu_stm32f3
1921
- TARGET=build.mcu_stm32f4
2022
- TARGET=test-unit

tools/apt-get-install-qemu-arm.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Copyright 2016 Samsung Electronics Co., Ltd.
4+
# Copyright 2016 University of Szeged
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
sudo apt-get update -q
19+
sudo apt-get install -q -y \
20+
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
21+
qemu-user-static

0 commit comments

Comments
 (0)