mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
ea709cc66f
fix #1041 * Add test-fastapi.sh script, after failing to create reusable variables in Make * Add test-fastapi Make target * Add fastapi dir for tests to gitignore * Add fastapi tests to Travis * Update test-fastapi to run the minimum (pytest) * Move make test-fastapi to normal run, no "Without Deps" * Install Pydantic without Cython for FastAPI tests * Put FastAPI tests in its own Travis job * Add PR changes description * Remove coverage for FastAPI, it's not relevant for Pydantic * Implement code review changes, refactor Makefile use and fastapi tests * Add a bug intentionally, to test that FastAPI tests are using the current source and make sure it actually breaks CI. * Fix intentional bug. Confirmed it breaks Travis for FastAPI.
15 lines
269 B
Bash
15 lines
269 B
Bash
#! /usr/bin/env bash
|
|
|
|
set -x
|
|
set -e
|
|
|
|
cd fastapi
|
|
git fetch --tags
|
|
latest_tag_commit=$(git rev-list --tags --max-count=1)
|
|
latest_tag=$(git describe --tags "${latest_tag_commit}")
|
|
git checkout "${latest_tag}"
|
|
pip install -U flit
|
|
flit install
|
|
|
|
PYTHONPATH=./docs/src pytest
|