-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
76 lines (66 loc) · 2.16 KB
/
.travis.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
sudo: required
dist: bionic
language: generic
branches:
only:
- master
cache:
directories:
- $HOME/.ccache
compiler:
- gcc
notifications:
email:
on_failure: always
env:
global:
- ROS_REPO=ros
- NOT_TEST_INSTALL=true
- CCACHE_DIR=$HOME/.ccache
- ECS_API=http://127.0.0.1:8000
- AGENT_POST_API=https://postman-echo.com
- ECS_DB_LOC=error_classification_server/ecs.db
- CODE_COVERAGE="coveralls.io"
matrix:
- USE_DEB=true
ROS_DISTRO="dashing"
ROS_REPO=ros
ADDITIONAL_DEBS="libcpprest-dev curl ros-dashing-ament-index-cpp"
CMAKE_ARGS="-DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug"
DOCKER_RUN_OPTS="--net=host -e ECS_API=http://127.0.0.1:8000 -e AGENT_POST_API=https://postman-echo.com"
#AFTER_SCRIPT="./.coverage.sh"
allow_failures:
- env: ROS_DISTRO="melodic" ROS_REPO=ros ADDITIONAL_DEBS="apt-utils libcpprest-dev ros-dashing-ament-index-cpp"
before_install:
#installing microsoft libcpprest dependency
- sudo apt-get install libcpprest-dev
- pip install --user cpp-coveralls
install:
- git clone https://github.com/cognicept-admin/error_classification_server.git
#- git clone https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master
- git clone --quiet --depth 1 https://github.com/Briancbn/industrial_ci.git .industrial_ci -b pr-coverage
before_script:
- sudo apt-get update
- sudo apt-get install python3-pip
- sudo apt-get install python3-setuptools
- sudo apt-get install apt-utils libcpprest-dev
- sudo apt install gcovr
- pip3 install sanic
- pip3 install databases
- pip3 install aiosqlite
- export ECS_API=http://127.0.0.1:8000
- export AGENT_POST_API=https://postman-echo.com
- export ECS_DB_LOC=error_classification_server/ecs.db
- chmod +x ci-test.sh
#- chmod +x .coverage.sh
- ./ci-test.sh
- sleep 10
script:
- curl 'http://127.0.0.1:8000/ping'
- source .industrial_ci/travis.sh
#- ./.coverage.sh
# - gcovr -r . --exclude-directories test
- curl 'http://127.0.0.1:8000/ert/error-data/'
- curl 'http://127.0.0.1:8000/ping'
# after_success:
# - coveralls --exclude lib --exclude tests --gcov-options '\-lp'