Skip to content

Commit fcce06a

Browse files
committed
Add scripts
1 parent 521fe0b commit fcce06a

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

scripts/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
$(dirname `realpath $0`)/../test/cmake/run.sh build all

scripts/install.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
#
3+
4+
# Remove large folder
5+
rm -rf /opt/hostedtoolcache
6+
7+
# Install necessary softwares for Ubuntu.
8+
9+
sudo apt-get update
10+
sudo apt-get install -y \
11+
gcc-multilib \
12+
git \
13+
g++ \
14+
python3-pip \
15+
ninja-build \
16+
unifdef \
17+
p7zip-full \
18+
tofrodos \
19+
gawk \
20+
software-properties-common
21+
22+
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
23+
CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//')
24+
apt-add-repository "deb https://apt.kitware.com/ubuntu/ $CODENAME main"
25+
26+
python3 -m pip install --upgrade pip
27+
pip3 install gcovr==4.1
28+
pip install --upgrade cmake

scripts/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
$(dirname `realpath $0`)/../test/cmake/run.sh test all

0 commit comments

Comments
 (0)