-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
42 lines (34 loc) · 1.14 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
language: python
# Version to Test Against
python:
- "3.7"
- "3.8"
- "3.9"
# Install Dependencies
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libpam0g-dev
- sudo apt-get install -y libcurl4-openssl-dev
- sudo apt-get install -y glib2.0 # maybe just libglib2.0-dev, not sure
- sudo apt-get install -y gcc g++ cmake
- sudo apt-get install -y libgtest-dev
- "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
# Old debian systems:
# - sudo apt-get install -y libpam0g-dev
# - sudo apt-get install -y libreadline5-dev
# Newer debian systems:
# - sudo apt-get install -y libreadline-gplv2-dev
# For gnutils SSL instead of openssl
# - sudo apt-get install libcurl4-gnutls-dev
install:
- pip install nose flask flask-redis fakeredis coveralls PyYAML PyJWT
# Run Tests
script:
- 'export PYTHONPATH="${PYTHONPATH}:./pivportal/lib"'
- "coverage run --source=pivportal $(which nosetests) -w pivportal/test/"
- "cd pam_pivportal/"
- "make clean && make"
- "make clean && make test"
- "cd -"
after_success:
- coveralls