|
| 1 | +schemaVersion: "1.0.0" |
| 2 | +commandTests: |
| 3 | + - name: "env var setup" |
| 4 | + envVars: [ |
| 5 | + ["VIRTUAL_ENV", "/env"], |
| 6 | + ["PATH", "/env/bin:$PATH"] |
| 7 | + ] |
| 8 | + command: ["echo", "'setup complete'"] |
| 9 | + |
| 10 | + - name: "python installation" |
| 11 | + command: ["which", "python"] |
| 12 | + expectedOutput: ["/usr/bin/python\n"] |
| 13 | + |
| 14 | + - name: "virtualenv installation" |
| 15 | + setup: [["virtualenv", "/env"]] |
| 16 | + command: ["which", "python"] |
| 17 | + expectedOutput": ["/env/bin/python\n"] |
| 18 | + |
| 19 | + - name: "python version" |
| 20 | + command: ["python", "--version"] |
| 21 | + expectedError: ["Python 2.7.9\n"] |
| 22 | + |
| 23 | + - name: "pip installation" |
| 24 | + command: ["which", "pip"] |
| 25 | + expectedOutput: ["/env/bin/pip\n"] |
| 26 | + |
| 27 | + - name: "gunicorn flask" |
| 28 | + setup: [["pip", "install", "gunicorn", "flask"]] |
| 29 | + command: ["which", "gunicorn"] |
| 30 | + expectedOutput: ["/env/bin/gunicorn"] |
| 31 | + |
| 32 | + - name: "flask integration" |
| 33 | + command: ["python", "-c", "\"import sys; import flask; sys.exit(0 if flask.__file__.startswith('/env') else 1)\""] |
0 commit comments