forked from dogtagpki/pki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
106 lines (100 loc) · 4.38 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
sudo: required
language: python
services:
- docker
cache: pip
jobs:
include:
# F27 Image
- env:
- TASK="PKI Test on F27"
- IMAGE=f27_106_46
before_install:
- set -a && source travis/global_variables
- echo -e $gerrit_ssh_key >> ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- touch ${LOGS}
- travis/post-test-started.sh
install:
- travis/builder-init.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh pki-core compose_pki_core_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh dogtag-pki-theme compose_dogtag_pki_theme_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh pki-console compose_pki_console_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh dogtag-pki compose_dogtag_pki_meta_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-install.sh
script:
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ds-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ca-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/kra-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ocsp-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tks-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tps-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tps-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tks-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ocsp-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/kra-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ca-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ds-remove.sh
after_failure:
- travis/post-test-failed.sh
after_script:
- cat ${LOGS}
- docker kill ${CONTAINER}
- docker rm ${CONTAINER}
- env:
- TASK="IPA Test on F27"
- IMAGE=f27_106_46
before_install:
- set -a && source travis/global_variables
- echo -e $gerrit_ssh_key >> ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- touch ${LOGS}
install:
- travis/builder-init.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh pki-core compose_pki_core_packages
- travis/ipa-init.sh
script:
- travis_wait 20 travis/ipa-test.sh
after_failure:
- travis/post-test-failed.sh
after_script:
- cat ${LOGS}
- docker kill ${CONTAINER}
- docker rm ${CONTAINER}
# F28 image
- env:
- TASK="PKI Test on F28"
- IMAGE=f28_106_46
before_install:
- set -a && source travis/global_variables
- echo -e $gerrit_ssh_key >> ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- touch ${LOGS}
install:
- travis/builder-init.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh pki-core compose_pki_core_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh dogtag-pki-theme compose_dogtag_pki_theme_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh pki-console compose_pki_console_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-build.sh dogtag-pki compose_dogtag_pki_meta_packages
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/pki-install.sh
script:
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ds-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ca-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/kra-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ocsp-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tks-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tps-create.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tps-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/tks-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ocsp-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/kra-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ca-remove.sh
- docker exec -i ${CONTAINER} ${SCRIPTDIR}/ds-remove.sh
after_failure:
- travis/post-test-failed.sh
after_script:
- cat ${LOGS}
- docker kill ${CONTAINER}
- docker rm ${CONTAINER}
- stage: Verification Label
before_install:
- echo -e $gerrit_ssh_key >> ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
script:
- travis/post-test-passed.sh