forked from UniversalRobots/Universal_Robots_Client_Library
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.56 KB
/
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
name: Integration tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- DOCKER_RUN_OPTS: --network static_test_net
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
CTEST_OUTPUT_ON_FAILURE: 1
URSIM_VERSION: 3.14.1.1031110
- DOCKER_RUN_OPTS: --network static_test_net
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
CTEST_OUTPUT_ON_FAILURE: 1
URSIM_VERSION: 5.8.0.10253
steps:
- uses: actions/checkout@v1
- name: start ursim
run: |
tests/resources/dockerursim/build_and_run_docker_ursim.sh $URSIM_VERSION
env: ${{matrix.env}}
- name: install gtest
run: sudo apt-get install -y libgtest-dev
- name: configure
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1
- name: build
run: cmake --build build --config Debug
- name: test
run: cd build && make test
check_links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check URLs
run: |
.github/helpers/check_urls.sh -r \
--exclude-dir=.git \
--exclude-dir=build/ \
--exclude-dir=tests \
--exclude=package.xml \
--exclude-dir=CMakeModules \
--exclude=tcp_socket.cpp \
--exclude=real_time.md