-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.13 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
sudo: false
language: python
virtualenv:
system_site_packages: true
python:
- '2.7'
cache:
directories:
- "$HOME/google_app_engine/"
- "$HOME/.cache/pip"
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
env:
#- API_CHECK=https://appengine.google.com/api/updatecheck
before_script:
#- SDK_VERSION=$(curl -s $API_CHECK | awk -F '\"' '/release/ {print $2}')
#- SDK_URL=https://storage.googleapis.com/appengine-sdks/featured/google_appengine_$SDK_VERSION.zip
#- wget $SDK_URL -nv
#- unzip -q google_appengine_$SDK_VERSION.zip
- unzip -q google_appengine_1.9.87.zip
before_install:
- openssl aes-256-cbc -K $encrypted_ec4638b67c22_key -iv $encrypted_ec4638b67c22_iv
-in credentials.tar.gz.enc -out credentials.tar.gz -d
- tar -xzf credentials.tar.gz
- mkdir -p lib
install:
- pip install -r requirements.txt -t lib/
- pip install -r test_requirements.txt
script:
- nosetests --with-coverage --with-gae --gae-lib-root=google_appengine --cover-package=blog tests/test_* -q
after_success:
- codecov
# safelist
branches:
only:
- master
deploy:
provider: gae
skip_cleanup: true
keyfile: client-secret.json
project: aarsakian
on: master