summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2023-01-03 08:02:21 +0100
committerStefan Behnel <stefan_ml@behnel.de>2023-01-03 08:02:21 +0100
commitef48b57837fdb2b052b58624236c6174d4d40788 (patch)
tree973f799ec11ae14b82a8739a23007f6f568b6901
parent055bd2e261b247f54648068830939a23ccd04f42 (diff)
downloadpython-lxml-ef48b57837fdb2b052b58624236c6174d4d40788.tar.gz
CI: Use Github API token where necessary.
-rw-r--r--tools/ci-run.sh21
1 files changed, 13 insertions, 8 deletions
diff --git a/tools/ci-run.sh b/tools/ci-run.sh
index 893e73b2..a72aba67 100644
--- a/tools/ci-run.sh
+++ b/tools/ci-run.sh
@@ -64,8 +64,8 @@ if [[ "$COVERAGE" == "true" ]]; then
fi
# Build
-CFLAGS="$CFLAGS $EXTRA_CFLAGS" \
- GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
+GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
+ CFLAGS="$CFLAGS $EXTRA_CFLAGS" \
python -u setup.py build_ext --inplace \
$(if [ -n "${PYTHON_VERSION##2.*}" ]; then echo -n " -j7 "; fi ) \
$(if [[ "$COVERAGE" == "true" ]]; then echo -n " --with-coverage"; fi ) \
@@ -74,14 +74,19 @@ CFLAGS="$CFLAGS $EXTRA_CFLAGS" \
ccache -s || true
# Run tests
-CFLAGS="$TEST_CFLAGS" PYTHONUNBUFFERED=x make test || exit 1
+GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
+ CFLAGS="$TEST_CFLAGS" PYTHONUNBUFFERED=x \
+ make test || exit 1
-python setup.py build || exit 1
-python setup.py install || exit 1
+GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
+ python setup.py build || exit 1
+GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
+ python setup.py install || exit 1
python -c "from lxml import etree" || exit 1
-CFLAGS="-O3 -g1 -mtune=generic -fPIC -flto" \
- LDFLAGS="-flto" \
- make clean wheel || exit 1
+GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
+ CFLAGS="-O3 -g1 -mtune=generic -fPIC -flto" \
+ LDFLAGS="-flto" \
+ make clean wheel || exit 1
ccache -s || true