You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

590 lines
16 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. stages:
  2. - moderator
  3. - unit-tests
  4. - deploy-gce-part1
  5. - deploy-gce-part2
  6. - deploy-gce-special
  7. variables:
  8. FAILFASTCI_NAMESPACE: 'kargo-ci'
  9. # DOCKER_HOST: tcp://localhost:2375
  10. ANSIBLE_FORCE_COLOR: "true"
  11. # asia-east1-a
  12. # asia-northeast1-a
  13. # europe-west1-b
  14. # us-central1-a
  15. # us-east1-b
  16. # us-west1-a
  17. before_script:
  18. - pip install ansible==2.2.1.0
  19. - pip install netaddr
  20. - pip install apache-libcloud==0.20.1
  21. - pip install boto==2.9.0
  22. - mkdir -p /.ssh
  23. - cp tests/ansible.cfg .
  24. .job: &job
  25. tags:
  26. - kubernetes
  27. - docker
  28. image: quay.io/ant31/kargo:master
  29. .docker_service: &docker_service
  30. services:
  31. - docker:dind
  32. .create_cluster: &create_cluster
  33. <<: *job
  34. <<: *docker_service
  35. .gce_variables: &gce_variables
  36. GCE_USER: travis
  37. SSH_USER: $GCE_USER
  38. TEST_ID: "$CI_PIPELINE_ID-$CI_BUILD_ID"
  39. CONTAINER_ENGINE: docker
  40. PRIVATE_KEY: $GCE_PRIVATE_KEY
  41. GS_ACCESS_KEY_ID: $GS_KEY
  42. GS_SECRET_ACCESS_KEY: $GS_SECRET
  43. ANSIBLE_KEEP_REMOTE_FILES: "1"
  44. ANSIBLE_CONFIG: ./tests/ansible.cfg
  45. BOOTSTRAP_OS: none
  46. IDEMPOT_CHECK: "false"
  47. UPGRADE_TEST: "false"
  48. RESOLVCONF_MODE: docker_dns
  49. LOG_LEVEL: "-vv"
  50. ETCD_DEPLOYMENT: "docker"
  51. KUBELET_DEPLOYMENT: "docker"
  52. VAULT_DEPLOYMENT: "docker"
  53. WEAVE_CPU_LIMIT: "100m"
  54. MAGIC: "ci check this"
  55. .gce: &gce
  56. <<: *job
  57. <<: *docker_service
  58. cache:
  59. key: "$CI_BUILD_REF_NAME"
  60. paths:
  61. - downloads/
  62. - $HOME/.cache
  63. before_script:
  64. - docker info
  65. - pip install ansible==2.2.1.0
  66. - pip install netaddr
  67. - pip install apache-libcloud==0.20.1
  68. - pip install boto==2.9.0
  69. - mkdir -p /.ssh
  70. - mkdir -p $HOME/.ssh
  71. - echo $PRIVATE_KEY | base64 -d > $HOME/.ssh/id_rsa
  72. - echo $GCE_PEM_FILE | base64 -d > $HOME/.ssh/gce
  73. - echo $GCE_CREDENTIALS > $HOME/.ssh/gce.json
  74. - chmod 400 $HOME/.ssh/id_rsa
  75. - ansible-playbook --version
  76. - export PYPATH=$([ $BOOTSTRAP_OS = none ] && echo /usr/bin/python || echo /opt/bin/python)
  77. script:
  78. - pwd
  79. - ls
  80. - echo ${PWD}
  81. - >
  82. ansible-playbook tests/cloud_playbooks/create-gce.yml -i tests/local_inventory/hosts.cfg -c local
  83. ${LOG_LEVEL}
  84. -e cloud_image=${CLOUD_IMAGE}
  85. -e cloud_region=${CLOUD_REGION}
  86. -e gce_credentials_file=${HOME}/.ssh/gce.json
  87. -e gce_project_id=${GCE_PROJECT_ID}
  88. -e gce_service_account_email=${GCE_ACCOUNT}
  89. -e inventory_path=${PWD}/inventory/inventory.ini
  90. -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
  91. -e mode=${CLUSTER_MODE}
  92. -e test_id=${TEST_ID}
  93. # Check out latest tag if testing upgrade
  94. # Uncomment when gitlab kargo repo has tags
  95. #- test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
  96. - test "${UPGRADE_TEST}" != "false" && git checkout 031cf565ec3ccd3ebbe80eeef3454c3780e5c598 && pip install ansible==2.2.0
  97. # Create cluster
  98. - >
  99. ansible-playbook -i inventory/inventory.ini -b --become-user=root --private-key=${HOME}/.ssh/id_rsa -u $SSH_USER
  100. ${SSH_ARGS}
  101. ${LOG_LEVEL}
  102. -e ansible_python_interpreter=${PYPATH}
  103. -e ansible_ssh_user=${SSH_USER}
  104. -e bootstrap_os=${BOOTSTRAP_OS}
  105. -e cert_management=${CERT_MGMT:-script}
  106. -e cloud_provider=gce
  107. -e deploy_netchecker=true
  108. -e download_localhost=true
  109. -e download_run_once=true
  110. -e etcd_deployment_type=${ETCD_DEPLOYMENT}
  111. -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
  112. -e kubelet_deployment_type=${KUBELET_DEPLOYMENT}
  113. -e local_release_dir=${PWD}/downloads
  114. -e resolvconf_mode=${RESOLVCONF_MODE}
  115. -e vault_deployment_type=${VAULT_DEPLOYMENT}
  116. cluster.yml
  117. # Repeat deployment if testing upgrade
  118. - >
  119. if [ "${UPGRADE_TEST}" != "false" ]; then
  120. test "${UPGRADE_TEST}" == "basic" && PLAYBOOK="cluster.yml";
  121. test "${UPGRADE_TEST}" == "graceful" && PLAYBOOK="upgrade-cluster.yml";
  122. pip install ansible==2.2.1.0;
  123. git checkout "${CI_BUILD_REF}";
  124. ansible-playbook -i inventory/inventory.ini -b --become-user=root --private-key=${HOME}/.ssh/id_rsa -u $SSH_USER
  125. ${SSH_ARGS}
  126. ${LOG_LEVEL}
  127. -e ansible_python_interpreter=${PYPATH}
  128. -e ansible_ssh_user=${SSH_USER}
  129. -e bootstrap_os=${BOOTSTRAP_OS}
  130. -e cloud_provider=gce
  131. -e deploy_netchecker=true
  132. -e download_localhost=true
  133. -e download_run_once=true
  134. -e etcd_deployment_type=${ETCD_DEPLOYMENT}
  135. -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
  136. -e kubelet_deployment_type=${KUBELET_DEPLOYMENT}
  137. -e local_release_dir=${PWD}/downloads
  138. -e resolvconf_mode=${RESOLVCONF_MODE}
  139. -e weave_cpu_requests=${WEAVE_CPU_LIMIT}
  140. -e weave_cpu_limit=${WEAVE_CPU_LIMIT}
  141. $PLAYBOOK;
  142. fi
  143. # Tests Cases
  144. ## Test Master API
  145. - ansible-playbook -i inventory/inventory.ini -e ansible_python_interpreter=${PYPATH} -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root tests/testcases/010_check-apiserver.yml $LOG_LEVEL
  146. ## Ping the between 2 pod
  147. - ansible-playbook -i inventory/inventory.ini -e ansible_python_interpreter=${PYPATH} -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root tests/testcases/030_check-network.yml $LOG_LEVEL
  148. ## Advanced DNS checks
  149. - ansible-playbook -i inventory/inventory.ini -e ansible_python_interpreter=${PYPATH} -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root tests/testcases/040_check-network-adv.yml $LOG_LEVEL
  150. ## Idempotency checks 1/5 (repeat deployment)
  151. - >
  152. if [ "${IDEMPOT_CHECK}" = "true" ]; then
  153. ansible-playbook -i inventory/inventory.ini -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS
  154. -b --become-user=root -e cloud_provider=gce $LOG_LEVEL -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
  155. --private-key=${HOME}/.ssh/id_rsa
  156. -e bootstrap_os=${BOOTSTRAP_OS}
  157. -e ansible_python_interpreter=${PYPATH}
  158. -e download_run_once=true
  159. -e download_localhost=true
  160. -e deploy_netchecker=true
  161. -e resolvconf_mode=${RESOLVCONF_MODE}
  162. -e local_release_dir=${PWD}/downloads
  163. -e etcd_deployment_type=${ETCD_DEPLOYMENT}
  164. -e kubelet_deployment_type=${KUBELET_DEPLOYMENT}
  165. cluster.yml;
  166. fi
  167. ## Idempotency checks 2/5 (Advanced DNS checks)
  168. - >
  169. if [ "${IDEMPOT_CHECK}" = "true" ]; then
  170. ansible-playbook -i inventory/inventory.ini -e ansible_python_interpreter=${PYPATH}
  171. -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root
  172. tests/testcases/040_check-network-adv.yml $LOG_LEVEL;
  173. fi
  174. ## Idempotency checks 3/5 (reset deployment)
  175. - >
  176. if [ "${IDEMPOT_CHECK}" = "true" ]; then
  177. ansible-playbook -i inventory/inventory.ini -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS
  178. -b --become-user=root -e cloud_provider=gce $LOG_LEVEL -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
  179. --private-key=${HOME}/.ssh/id_rsa
  180. -e bootstrap_os=${BOOTSTRAP_OS}
  181. -e ansible_python_interpreter=${PYPATH}
  182. -e reset_confirmation=yes
  183. reset.yml;
  184. fi
  185. ## Idempotency checks 4/5 (redeploy after reset)
  186. - >
  187. if [ "${IDEMPOT_CHECK}" = "true" ]; then
  188. ansible-playbook -i inventory/inventory.ini -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS
  189. -b --become-user=root -e cloud_provider=gce $LOG_LEVEL -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
  190. --private-key=${HOME}/.ssh/id_rsa
  191. -e bootstrap_os=${BOOTSTRAP_OS}
  192. -e ansible_python_interpreter=${PYPATH}
  193. -e download_run_once=true
  194. -e download_localhost=true
  195. -e deploy_netchecker=true
  196. -e resolvconf_mode=${RESOLVCONF_MODE}
  197. -e local_release_dir=${PWD}/downloads
  198. -e etcd_deployment_type=${ETCD_DEPLOYMENT}
  199. -e kubelet_deployment_type=${KUBELET_DEPLOYMENT}
  200. cluster.yml;
  201. fi
  202. ## Idempotency checks 5/5 (Advanced DNS checks)
  203. - >
  204. if [ "${IDEMPOT_CHECK}" = "true" ]; then
  205. ansible-playbook -i inventory/inventory.ini -e ansible_python_interpreter=${PYPATH}
  206. -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root
  207. tests/testcases/040_check-network-adv.yml $LOG_LEVEL;
  208. fi
  209. after_script:
  210. - >
  211. ansible-playbook -i inventory/inventory.ini tests/cloud_playbooks/delete-gce.yml -c local $LOG_LEVEL
  212. -e mode=${CLUSTER_MODE}
  213. -e test_id=${TEST_ID}
  214. -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
  215. -e gce_project_id=${GCE_PROJECT_ID}
  216. -e gce_service_account_email=${GCE_ACCOUNT}
  217. -e gce_credentials_file=${HOME}/.ssh/gce.json
  218. -e cloud_image=${CLOUD_IMAGE}
  219. -e inventory_path=${PWD}/inventory/inventory.ini
  220. -e cloud_region=${CLOUD_REGION}
  221. # Test matrix. Leave the comments for markup scripts.
  222. .coreos_calico_sep_variables: &coreos_calico_sep_variables
  223. # stage: deploy-gce-part1
  224. KUBE_NETWORK_PLUGIN: calico
  225. CLOUD_IMAGE: coreos-stable-1235-6-0-v20170111
  226. CLOUD_REGION: us-west1-b
  227. CLUSTER_MODE: separate
  228. BOOTSTRAP_OS: coreos
  229. RESOLVCONF_MODE: host_resolvconf # This is required as long as the CoreOS stable channel uses docker < 1.12
  230. .debian8_canal_ha_variables: &debian8_canal_ha_variables
  231. # stage: deploy-gce-part1
  232. KUBE_NETWORK_PLUGIN: canal
  233. CLOUD_IMAGE: debian-8-kubespray
  234. CLOUD_REGION: us-east1-b
  235. UPGRADE_TEST: "basic"
  236. CLUSTER_MODE: ha
  237. .rhel7_weave_variables: &rhel7_weave_variables
  238. # stage: deploy-gce-part1
  239. KUBE_NETWORK_PLUGIN: weave
  240. CLOUD_IMAGE: rhel-7
  241. CLOUD_REGION: europe-west1-b
  242. CLUSTER_MODE: default
  243. .centos7_flannel_variables: &centos7_flannel_variables
  244. # stage: deploy-gce-part2
  245. KUBE_NETWORK_PLUGIN: flannel
  246. CLOUD_IMAGE: centos-7
  247. CLOUD_REGION: us-west1-a
  248. CLUSTER_MODE: default
  249. .debian8_calico_variables: &debian8_calico_variables
  250. # stage: deploy-gce-part2
  251. KUBE_NETWORK_PLUGIN: calico
  252. CLOUD_IMAGE: debian-8-kubespray
  253. CLOUD_REGION: us-central1-b
  254. CLUSTER_MODE: default
  255. UPGRADE_TEST: "graceful"
  256. .coreos_canal_variables: &coreos_canal_variables
  257. # stage: deploy-gce-part2
  258. KUBE_NETWORK_PLUGIN: canal
  259. CLOUD_IMAGE: coreos-stable-1235-6-0-v20170111
  260. CLOUD_REGION: us-east1-b
  261. CLUSTER_MODE: default
  262. BOOTSTRAP_OS: coreos
  263. RESOLVCONF_MODE: host_resolvconf # This is required as long as the CoreOS stable channel uses docker < 1.12
  264. IDEMPOT_CHECK: "true"
  265. .rhel7_canal_sep_variables: &rhel7_canal_sep_variables
  266. # stage: deploy-gce-special
  267. KUBE_NETWORK_PLUGIN: canal
  268. CLOUD_IMAGE: rhel-7
  269. CLOUD_REGION: us-east1-b
  270. CLUSTER_MODE: separate
  271. .ubuntu_weave_sep_variables: &ubuntu_weave_sep_variables
  272. # stage: deploy-gce-special
  273. KUBE_NETWORK_PLUGIN: weave
  274. CLOUD_IMAGE: ubuntu-1604-xenial
  275. CLOUD_REGION: us-central1-b
  276. CLUSTER_MODE: separate
  277. IDEMPOT_CHECK: "false"
  278. .centos7_calico_ha_variables: &centos7_calico_ha_variables
  279. # stage: deploy-gce-special
  280. KUBE_NETWORK_PLUGIN: calico
  281. CLOUD_IMAGE: centos-7
  282. CLOUD_REGION: europe-west1-b
  283. CLUSTER_MODE: ha
  284. IDEMPOT_CHECK: "true"
  285. .coreos_alpha_weave_ha_variables: &coreos_alpha_weave_ha_variables
  286. # stage: deploy-gce-special
  287. KUBE_NETWORK_PLUGIN: weave
  288. CLOUD_IMAGE: coreos-alpha
  289. CLOUD_REGION: us-west1-a
  290. CLUSTER_MODE: ha
  291. BOOTSTRAP_OS: coreos
  292. .ubuntu_rkt_sep_variables: &ubuntu_rkt_sep_variables
  293. # stage: deploy-gce-part1
  294. KUBE_NETWORK_PLUGIN: flannel
  295. CLOUD_IMAGE: ubuntu-1604-xenial
  296. CLOUD_REGION: us-central1-b
  297. CLUSTER_MODE: separate
  298. ETCD_DEPLOYMENT: rkt
  299. KUBELET_DEPLOYMENT: rkt
  300. .ubuntu_vault_sep_variables: &ubuntu_vault_sep_variables
  301. # stage: deploy-gce-part1
  302. KUBE_NETWORK_PLUGIN: canal
  303. CERT_MGMT: vault
  304. CLOUD_IMAGE: ubuntu-1604-xenial
  305. CLOUD_REGION: us-central1-b
  306. CLUSTER_MODE: separate
  307. # Builds for PRs only (premoderated by unit-tests step) and triggers (auto)
  308. coreos-calico-sep:
  309. stage: deploy-gce-part1
  310. <<: *job
  311. <<: *gce
  312. variables:
  313. <<: *gce_variables
  314. <<: *coreos_calico_sep_variables
  315. when: on_success
  316. except: ['triggers']
  317. only: [/^pr-.*$/]
  318. coreos-calico-sep-triggers:
  319. stage: deploy-gce-part1
  320. <<: *job
  321. <<: *gce
  322. variables:
  323. <<: *gce_variables
  324. <<: *coreos_calico_sep_variables
  325. when: on_success
  326. only: ['triggers']
  327. centos7-flannel:
  328. stage: deploy-gce-part2
  329. <<: *job
  330. <<: *gce
  331. variables:
  332. <<: *gce_variables
  333. <<: *centos7_flannel_variables
  334. when: on_success
  335. except: ['triggers']
  336. only: [/^pr-.*$/]
  337. centos7-flannel-triggers:
  338. stage: deploy-gce-part1
  339. <<: *job
  340. <<: *gce
  341. variables:
  342. <<: *gce_variables
  343. <<: *centos7_flannel_variables
  344. when: on_success
  345. only: ['triggers']
  346. ubuntu-weave-sep:
  347. stage: deploy-gce-special
  348. <<: *job
  349. <<: *gce
  350. variables:
  351. <<: *gce_variables
  352. <<: *ubuntu_weave_sep_variables
  353. when: on_success
  354. except: ['triggers']
  355. only: [/^pr-.*$/]
  356. ubuntu-weave-sep-triggers:
  357. stage: deploy-gce-part1
  358. <<: *job
  359. <<: *gce
  360. variables:
  361. <<: *gce_variables
  362. <<: *ubuntu_weave_sep_variables
  363. when: on_success
  364. only: ['triggers']
  365. # More builds for PRs/merges (manual) and triggers (auto)
  366. debian8-canal-ha:
  367. stage: deploy-gce-part1
  368. <<: *job
  369. <<: *gce
  370. variables:
  371. <<: *gce_variables
  372. <<: *debian8_canal_ha_variables
  373. when: manual
  374. except: ['triggers']
  375. only: ['master', /^pr-.*$/]
  376. debian8-canal-ha-triggers:
  377. stage: deploy-gce-part1
  378. <<: *job
  379. <<: *gce
  380. variables:
  381. <<: *gce_variables
  382. <<: *debian8_canal_ha_variables
  383. when: on_success
  384. only: ['triggers']
  385. rhel7-weave:
  386. stage: deploy-gce-part1
  387. <<: *job
  388. <<: *gce
  389. variables:
  390. <<: *gce_variables
  391. <<: *rhel7_weave_variables
  392. when: manual
  393. except: ['triggers']
  394. only: ['master', /^pr-.*$/]
  395. rhel7-weave-triggers:
  396. stage: deploy-gce-part1
  397. <<: *job
  398. <<: *gce
  399. variables:
  400. <<: *gce_variables
  401. <<: *rhel7_weave_variables
  402. when: on_success
  403. only: ['triggers']
  404. debian8-calico-upgrade:
  405. stage: deploy-gce-part2
  406. <<: *job
  407. <<: *gce
  408. variables:
  409. <<: *gce_variables
  410. <<: *debian8_calico_variables
  411. when: manual
  412. except: ['triggers']
  413. only: ['master', /^pr-.*$/]
  414. debian8-calico-triggers:
  415. stage: deploy-gce-part1
  416. <<: *job
  417. <<: *gce
  418. variables:
  419. <<: *gce_variables
  420. <<: *debian8_calico_variables
  421. when: on_success
  422. only: ['triggers']
  423. coreos-canal:
  424. stage: deploy-gce-part2
  425. <<: *job
  426. <<: *gce
  427. variables:
  428. <<: *gce_variables
  429. <<: *coreos_canal_variables
  430. when: manual
  431. except: ['triggers']
  432. only: ['master', /^pr-.*$/]
  433. coreos-canal-triggers:
  434. stage: deploy-gce-part1
  435. <<: *job
  436. <<: *gce
  437. variables:
  438. <<: *gce_variables
  439. <<: *coreos_canal_variables
  440. when: on_success
  441. only: ['triggers']
  442. rhel7-canal-sep:
  443. stage: deploy-gce-special
  444. <<: *job
  445. <<: *gce
  446. variables:
  447. <<: *gce_variables
  448. <<: *rhel7_canal_sep_variables
  449. when: manual
  450. except: ['triggers']
  451. only: ['master', /^pr-.*$/,]
  452. rhel7-canal-sep-triggers:
  453. stage: deploy-gce-part1
  454. <<: *job
  455. <<: *gce
  456. variables:
  457. <<: *gce_variables
  458. <<: *rhel7_canal_sep_variables
  459. when: on_success
  460. only: ['triggers']
  461. centos7-calico-ha:
  462. stage: deploy-gce-special
  463. <<: *job
  464. <<: *gce
  465. variables:
  466. <<: *gce_variables
  467. <<: *centos7_calico_ha_variables
  468. when: manual
  469. except: ['triggers']
  470. only: ['master', /^pr-.*$/]
  471. centos7-calico-ha-triggers:
  472. stage: deploy-gce-part1
  473. <<: *job
  474. <<: *gce
  475. variables:
  476. <<: *gce_variables
  477. <<: *centos7_calico_ha_variables
  478. when: on_success
  479. only: ['triggers']
  480. # no triggers yet https://github.com/kubernetes-incubator/kargo/issues/613
  481. coreos-alpha-weave-ha:
  482. stage: deploy-gce-special
  483. <<: *job
  484. <<: *gce
  485. variables:
  486. <<: *gce_variables
  487. <<: *coreos_alpha_weave_ha_variables
  488. when: manual
  489. except: ['triggers']
  490. only: ['master', /^pr-.*$/]
  491. ubuntu-rkt-sep-upgrade:
  492. stage: deploy-gce-part1
  493. <<: *job
  494. <<: *gce
  495. variables:
  496. <<: *gce_variables
  497. <<: *ubuntu_rkt_sep_variables
  498. when: manual
  499. except: ['triggers']
  500. only: ['master', /^pr-.*$/]
  501. ubuntu-vault-sep:
  502. stage: deploy-gce-part1
  503. <<: *job
  504. <<: *gce
  505. variables:
  506. <<: *gce_variables
  507. <<: *ubuntu_vault_sep_variables
  508. when: manual
  509. except: ['triggers']
  510. only: ['master', /^pr-.*$/]
  511. # Premoderated with manual actions
  512. ci-authorized:
  513. <<: *job
  514. stage: moderator
  515. before_script:
  516. - apt-get -y install jq
  517. script:
  518. - /bin/sh scripts/premoderator.sh
  519. except: ['triggers', 'master']
  520. syntax-check:
  521. <<: *job
  522. stage: unit-tests
  523. script:
  524. - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root cluster.yml -vvv --syntax-check
  525. except: ['triggers', 'master']
  526. tox-inventory-builder:
  527. stage: unit-tests
  528. <<: *job
  529. script:
  530. - pip install tox
  531. - cd contrib/inventory_builder && tox
  532. when: manual
  533. except: ['triggers', 'master']