-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (20 loc) · 1.1 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
---
addons:
hostname: easyrsa-test
language: python
python: "2.7"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt
install:
- pip install ansible
script:
- ansible-playbook -i tests/inventory tests/test.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test.yml --connection=local --become
- ansible-playbook -i tests/inventory tests/test.yml --connection=local --become | tee /tmp/output.txt; grep -q 'changed=0.*failed=0' /tmp/output.txt
- sudo ls /etc/ssl/easyrsa-test/issued/easyrsa-test.crt
- sudo ls /etc/ssl/easyrsa-test/private/easyrsa-test.key
- sudo ls /etc/ssl/easyrsa-test/dh.pem
- sudo openssl x509 -in /etc/ssl/easyrsa-test/issued/easyrsa-test.crt -text -noout
- sudo openssl rsa -in /etc/ssl/easyrsa-test/private/easyrsa-test.key -check
- sudo [ $(openssl x509 -noout -modulus -in /etc/ssl/easyrsa-test/issued/easyrsa.crt| openssl md5| cut -f2 -d" ") == $(openssl rsa -noout -modulus -in /etc/ssl/easyrsa-test/private/easyrsa.key| openssl md5| cut -f2 -d" ") ]