forked from GoogleCloudPlatform/python-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvirtualenv_python34.yaml
More file actions
47 lines (36 loc) · 1.31 KB
/
virtualenv_python34.yaml
File metadata and controls
47 lines (36 loc) · 1.31 KB
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
schemaVersion: "1.0.0"
globalEnvVars:
- key: "VIRTUAL_ENV"
value: "/env"
- key: "PATH"
value: "/env/bin:$PATH"
commandTests:
- name: "virtual env teardown"
command: ["rm", "-rf", "/env"]
- name: "python installation"
command: ["which", "python3.4"]
expectedOutput: ["/usr/bin/python3.4\n"]
- name: "virtualenv python installation"
setup: [["virtualenv", "-p", "python3.4", "/env"]]
command: ["which", "python"]
expectedOutput: ["/env/bin/python\n"]
- name: "virtualenv python3 installation"
command: ["which", "python3"]
expectedOutput: ["/env/bin/python3\n"]
- name: "python version"
command: ["python", "--version"]
expectedOutput: ["Python 3.4.2\n"]
- name: "pip installation"
command: ["which", "pip"]
expectedOutput: ["/env/bin/pip\n"]
- name: "pip3 installation"
command: ["which", "pip3"]
expectedOutput: ["/env/bin/pip3\n"]
- name: "gunicorn flask"
setup: [["pip", "install", "gunicorn", "flask"]]
command: ["which", "gunicorn"]
expectedOutput: ["/env/bin/gunicorn"]
- name: "flask integration"
command: ["python", "-c", "\"import sys; import flask; sys.exit(0 if flask.__file__.startswith('/env') else 1)\""]
- name: "test.support"
command: ["python", "-c", "\"from test import pystone, regrtest, support\""]