-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
executable file
·55 lines (52 loc) · 2.26 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
language: python
python: 3.6
matrix:
include:
- sudo: false
dist: trusty
env: INSTALL=no TESTFILE=./wftests/warrior_tests/projects/pj_common_actions.xml
- sudo: false
dist: trusty
env: INSTALL=yes TESTFILE=./wftests/ci/pylint.sh PYLINT=yes
- sudo: false
dist: trusty
env: INSTALL=yes TESTFILES_1=yes
- sudo: false
dist: trusty
env: INSTALL=yes TESTFILES_2=yes
- sudo: false
dist: trusty
env: INSTALL=no TESTFILE=./wftests/warrior_tests/testcases/framework_tests/cond_var/pass.xml COPILOT=yes
install:
- if [[ ${COPILOT} = "yes" ]]; then
pip3 install --upgrade setuptools ;
python3 setup.py install ;
fi
- if [[ ${INSTALL} = "yes" ]] && [[ ! -z ${TRAVIS_PULL_REQUEST_BRANCH} ]]; then
pip3 install configobj==5.0.6 ;
pip3 install kafka-python==1.4.6 ;
pip3 install lxml==4.4.1 ;
pip3 install paramiko==2.7.2 ;
pip3 install pexpect==4.8.0 ;
pip3 install pycryptodome==3.6.1 ;
pip3 install pysnmp==4.4.12 ;
pip3 install requests==2.21.0 ;
pip3 install selenium==3.8.0 ;
pip3 install xmltodict==0.12.0 ;
fi
script:
- if [[ -z ${TRAVIS_PULL_REQUEST_BRANCH} ]]; then
python3 ./warrior/Warrior ./wftests/warrior_tests/testcases/framework_tests/cond_var/pass.xml ;
elif [[ ${PYLINT} = "yes" ]]; then
$TESTFILE ;
elif [[ ${TESTFILES_1} = "yes" ]]; then
python3 ./warrior/Warrior ./wftests/warrior_tests/projects/pj_framework_tests.xml ./wftests/warrior_tests/projects/pj_glob.xml ./wftests/warrior_tests/projects/pj_rest.xml ./wftests/warrior_tests/projects/pj_retry.xml ./wftests/warrior_tests/projects/pj_runmode_retry_at_suite_level_at_project_file.xml ./wftests/warrior_tests/projects/pj_execute_resume.xml ;
elif [[ ${TESTFILES_2} = "yes" ]]; then
python3 ./warrior/Warrior ./wftests/warrior_tests/projects/pj_cond_var.xml ./wftests/warrior_tests/projects/pj_iterative_execution.xml ./wftests/warrior_tests/projects/pj_parallel_execution.xml ./wftests/warrior_tests/projects/pj_parallel_execution_2.xml ;
else
python3 ./warrior/Warrior $TESTFILE ;
fi
after_success:
- if [[ ${COPILOT} = "yes" ]]; then
bash <(curl -s https://copilot.blackducksoftware.com/ci/travis/scripts/upload);
fi