forked from pallets-eco/wtforms-appengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (42 loc) · 1.71 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
43
44
45
46
47
48
49
language: python
python:
- 3.6
- 3.7
- 3.8
before_install:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv ${HOME}/venv
- source ${HOME}/venv/bin/activate
# Install CA certs, openssl to https downloads, python for gcloud sdk
- sudo apt-get install make ca-certificates openssl python
- sudo update-ca-certificates
# Install Java
- sudo wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install -y software-properties-common
- sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
- sudo apt-get -q update
- sudo apt-get install -y adoptopenjdk-8-hotspot
# Download the latest version of the GAE Python SDK
- curl https://sdk.cloud.google.com > install.sh
- bash install.sh --disable-prompts --install-dir=${HOME}
- source ${HOME}/google-cloud-sdk/path.bash.inc
- gcloud --quiet components update
- gcloud --quiet components install cloud-datastore-emulator
- gcloud --quiet components install beta
- gcloud --quiet components install appctl
- gcloud --quiet components install cloud-build-local
- gcloud --quiet components install app-engine-python
- gcloud --quiet components install app-engine-python-extras
# command to install dependencies
install:
- "pip install -r tests/requirements.txt"
# This is a quick hack, necessary to get fancy_urllib working,
# by exposing the lib/fancy_urllib/fancy_urllib/ dirctory within for use by appengine.
- "rm -rf google_appengine/lib/fancy_urllib/__init__.py"
# command to run tests
script: "pytest --cov wtforms_appengine tests"
after_success:
- pip install coveralls
- coveralls