mirror of
https://github.com/laurivosandi/certidude
synced 2024-11-10 15:10:35 +00:00
Lauri Võsandi
bfdd8c4887
* Move SessionResource and CertificateAuthorityResource to api/session.py * Log browser user agent for logins * Remove static sink from backend, nginx always serves static now * Don't emit 'attribute-update' event if no attributes were changed * Better CN extraction from DN during lease update * Log user who deleted request * Remove long polling CRL fetch API call and relevant test * Merge auth decorators ldap_authenticate, kerberos_authenticate, pam_authenticate * Add 'kerberos subnets' to distinguish authentication method * Add 'admin subnets' to filter traffic to administrative API calls * Highlight recent log events * Links to switch between 2, 3 and 4 column layouts in the dashboard * Restored certidude client snippets in request dialog * Various bugfixes, improved log messages
27 lines
1.0 KiB
YAML
27 lines
1.0 KiB
YAML
sudo: required
|
|
language: generic
|
|
dist: trusty
|
|
env:
|
|
- COVERAGE_FILE=/tmp/.coverage
|
|
after_success:
|
|
- codecov
|
|
script:
|
|
- echo registry=http://registry.npmjs.org/ | sudo tee /root/.npmrc
|
|
- sudo apt install software-properties-common python3-setuptools build-essential python3-dev libsasl2-dev libkrb5-dev
|
|
- sudo apt remove python3-mimeparse
|
|
- sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04
|
|
- sudo easy_install3 pip
|
|
- sudo -H pip3 install -r requirements.txt
|
|
- sudo -H pip3 install codecov pytest-cov requests-kerberos
|
|
- sudo -H pip3 install -e .
|
|
- echo ca | sudo tee /etc/hostname
|
|
- echo 127.0.0.1 localhost | sudo tee /etc/hosts
|
|
- echo 127.0.1.1 ca.example.lan ca | sudo tee -a /etc/hosts
|
|
- sudo hostname -F /etc/hostname
|
|
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates
|
|
- sudo coverage run --parallel-mode --source certidude -m py.test tests --capture=sys
|
|
- sudo coverage combine
|
|
- sudo coverage report
|
|
- sudo coverage xml -i
|
|
cache: pip
|