Skip to content

Commit 703199f

Browse files
committed
commit
1 parent 33318e8 commit 703199f

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
.vscode/
3+
*.pyc
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "lib/spdlog"]
2+
path = lib/spdlog
3+
url = git@github.com:gabime/spdlog.git
4+
[submodule "lib/msgpack-c"]
5+
path = lib/msgpack-c
6+
url = git@github.com:msgpack/msgpack-c.git
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
dist: trusty
2+
language: c++
3+
compiler: gcc
4+
install: export CXX="g++-8"
5+
git:
6+
submodules: false
7+
addons:
8+
apt:
9+
sources:
10+
- ubuntu-toolchain-r-test
11+
packages:
12+
- gcc-8
13+
- g++-8
14+
- libzmqpp-dev
15+
before_install:
16+
# Load git submodules
17+
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
18+
- git submodule update --init --recursive
19+
# Install Cmake >= 3.10.0
20+
- wget -O cmake.sh https://cmake.org/files/v3.10/cmake-3.10.0-rc1-Linux-x86_64.sh
21+
- sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr/local
22+
# Install libtorch
23+
- wget https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-latest.zip -O /tmp/libtorch.zip
24+
- unzip /tmp/libtorch.zip -d /tmp/
25+
# Install cppcheck
26+
- git clone https://github.com/danmar/cppcheck /tmp/cppcheck
27+
- mkdir -p /tmp/cppcheck/build && cd /tmp/cppcheck/build && cmake .. && make -j2 && sudo make install && cd -
28+
script:
29+
# Print compiler versions
30+
- gcc -v && g++ -v && cmake --version
31+
# Build
32+
- mkdir build && cd build
33+
- /usr/local/bin/cmake -DCMAKE_PREFIX_PATH=/tmp/libtorch ..
34+
- make -j2
35+
# Run tests
36+
- ./cpprl_tests
37+
# Cppcheck
38+
- make check

0 commit comments

Comments
 (0)