|
14 | 14 | # See the License for the specific language governing permissions and |
15 | 15 | # limitations under the License. |
16 | 16 |
|
17 | | -# Need enchant for spell check |
18 | | -sudo apt-get update |
19 | | -sudo apt-get -y install dictionaries-common aspell aspell-en \ |
20 | | - hunspell-en-us libenchant1c2a enchant |
21 | | - |
22 | 17 | set -eo pipefail |
23 | 18 |
|
24 | 19 | cd github/python-ndb |
25 | 20 |
|
| 21 | +# Need enchant for spell check |
| 22 | +sudo apt-get update |
| 23 | +sudo apt-get -y install dictionaries-common aspell aspell-en \ |
| 24 | + hunspell-en-us libenchant1c2a enchant |
| 25 | + |
26 | 26 | # Disable buffering, so that the logs stream through. |
27 | 27 | export PYTHONUNBUFFERED=1 |
28 | 28 |
|
29 | 29 | # Debug: show build environment |
30 | 30 | env | grep KOKORO |
31 | 31 |
|
32 | | -# Setup firestore account credentials |
33 | | -export FIRESTORE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/firebase-credentials.json |
34 | | - |
35 | 32 | # Setup service account credentials. |
36 | 33 | export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json |
37 | 34 |
|
38 | 35 | # Setup project id. |
39 | 36 | export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json") |
40 | 37 |
|
41 | | -# Find out if this package was modified. |
42 | | -# Temporarily use Thea's fork of ci-diff-helper w/ Kokoro support. |
43 | | -# python3.6 -m pip install --quiet git+https://github.com/theacodes/ci-diff-helper.git |
44 | | -# python3.6 test_utils/scripts/get_target_packages_kokoro.py > ~/target_packages |
45 | | -# cat ~/target_packages |
46 | | - |
47 | | -# if [[ ! -n $(grep -x "$PACKAGE" ~/target_packages) ]]; then |
48 | | -# echo "$PACKAGE was not modified, returning." |
49 | | -# exit; |
50 | | -# fi |
51 | | - |
52 | | -# cd "$PACKAGE" |
53 | | - |
54 | | -# Some system tests require indexes. Use gclod to create them. |
| 38 | +# Some system tests require indexes. Use gcloud to create them. |
55 | 39 | gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS --project=$PROJECT_ID |
56 | 40 | gcloud --quiet --verbosity=debug datastore indexes create tests/system/index.yaml |
57 | 41 |
|
| 42 | + |
58 | 43 | # Remove old nox |
59 | 44 | python3.6 -m pip uninstall --yes --quiet nox-automation |
60 | 45 |
|
|
0 commit comments