-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
34 lines (30 loc) · 1.54 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
language: cpp
dist: xenial
env:
ASCEND_ROOT_PATH=${HOME}/build/Ascend
BUILD_ROOT_PATH=${HOME}/build/Ascend/ascenddk/scripts/travis_scripts
BUILD_TEMP_PATH=${BUILD_ROOT_PATH}/temp
DDK_HOME=${ASCEND_ROOT_PATH}/tools/ddk
LLT_ROOT_PATH=${HOME}/build/llt
#default before_install, clone Ascend/tools as default, it can be overwrited by jobs
before_install: python3 ${BUILD_ROOT_PATH}/install/install.py before_install_clone_tools
#default install, it can be overwrited by jobs
install: python3 ${BUILD_ROOT_PATH}/install/install.py install
jobs:
include:
- stage: ascenddk llt and sc
name: "static_check_cppcheck"
#no need to do clone tools
before_install: python3 ${BUILD_ROOT_PATH}/install/install.py before_install
install: python3 ${BUILD_ROOT_PATH}/install/install.py install_cppcheck
script: python3 ${BUILD_ROOT_PATH}/script/static_check_run.py cppcheck
- name: "static_check_pylint"
#no need to do clone tools
before_install: python3 ${BUILD_ROOT_PATH}/install/install.py before_install
install: python3 ${BUILD_ROOT_PATH}/install/install.py install_pylint
script: python3 ${BUILD_ROOT_PATH}/script/static_check_run.py pylint
- name: "static_warn_check"
script: python3 ${BUILD_ROOT_PATH}/script/static_check_run.py warn_check
- name: "presenter_agent_ut"
install: python3 ${BUILD_ROOT_PATH}/install/install.py install_llt
script: python3 ${BUILD_ROOT_PATH}/script/llt_run.py presenter_agent_ut