forked from PyColorado/boulderpython.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
24 lines (24 loc) · 944 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
language: python
python:
- "3.6"
# Cache our Gcloud SDK and pip-installed libraries between commands
cache:
directories:
- "$HOME/google-cloud-sdk/"
- "$HOME/lib"
env:
# Set the App engine install location and add the SDK to our Python path
- GOOGLE_APP_ENGINE_SDK=${HOME}/google-cloud-sdk PYTHONPATH=${PYTHONPATH}:${GOOGLE_APP_ENGINE_SDK} CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_install:
# If the SDK is not present, download it. When it's available, pull it into our path.
- if [ ! -f ${GOOGLE_APP_ENGINE_SDK}/path.bash.inc ]; then rm -rf ${GOOGLE_APP_ENGINE_SDK} && curl https://sdk.cloud.google.com | bash; fi
- source ${GOOGLE_APP_ENGINE_SDK}/path.bash.inc
install:
# Install the Python dependencies
- pip install -r requirements.txt
# Install and update additional GAE components
- gcloud -q components install app-engine-python
- gcloud -q components update
script:
# Run the unit tests
- ./run.py -t