Skip to content

Commit

Permalink
Tests: Agrego archivo para usar certificados en tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Sandoval <[email protected]>
  • Loading branch information
NicolasSandoval committed Jun 10, 2021
1 parent 498c430 commit 0874df8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/build-travis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.

"""" Modulo para utilizar los certificados en Travis CI."""

import os

# Para usar variables de entorno en travis
cert = os.environ['CERT']
pkey = os.environ['PKEY']
CERT = cert.replace(r'\n', '\n')
PKEY = pkey.replace(r'\n', '\n')

with open('rei.crt', 'w', encoding='utf-8') as f:
f.write(CERT)

with open('rei.key', 'w', encoding='utf-8') as f:
f.write(PKEY)

0 comments on commit 0874df8

Please sign in to comment.