forked from Stanford-Online/openedx-certificates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 798 Bytes
/
.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
# Travis CI configuration file for running tests
language: python
sudo: false
python:
- "2.7"
env:
- BOTO_CONFIG=/dev/null
branches:
only:
- master
install:
- echo '{}' > ../env.json
- echo '{}' > ../auth.json
- pip install --allow-all-external -r requirements.txt
- pip install -r test_requirements.txt
script:
- pep8 --verbose
- |
curl https://raw.githubusercontent.com/edx/configuration/master/playbooks/roles/certs/files/example-private-key.txt -o /var/tmp/key.txt
curl https://raw.githubusercontent.com/edx/configuration/master/playbooks/roles/certs/files/example-key-ownertrust.txt -o /var/tmp/trust.txt
/usr/bin/gpg --import /var/tmp/key.txt
/usr/bin/gpg --import-ownertrust /var/tmp/trust.txt
nosetests --with-coverage
after_success:
- coveralls