diff --git a/.travis.yml b/.travis.yml index ef9d54b41f3f97..aa1555b62ec324 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ cache: directories: - $HOME/.cache # cython cache - $HOME/.ccache # compiler cache + env: global: # create a github personal access token @@ -35,6 +36,8 @@ matrix: - arch: arm64 env: - JOB="3.7" ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)" + services: + - xvfb - env: - JOB="3.6, locale" ENV_FILE="ci/deps/travis-36-locale.yaml" PATTERN="((not slow and not network and not clipboard) or (single and db))" LOCALE_OVERRIDE="zh_CN.UTF-8" SQL="1" diff --git a/ci/deps/travis-37-aarch64.yaml b/ci/deps/travis-37-arm64.yaml similarity index 95% rename from ci/deps/travis-37-aarch64.yaml rename to ci/deps/travis-37-arm64.yaml index 779d7600b1ca25..5cb53489be225a 100644 --- a/ci/deps/travis-37-aarch64.yaml +++ b/ci/deps/travis-37-arm64.yaml @@ -2,7 +2,6 @@ name: pandas-dev channels: - defaults - conda-forge - - c3i_test dependencies: - python=3.7.* diff --git a/ci/run_tests.sh b/ci/run_tests.sh index a9294bc52a4c56..0cb1f4aabf3529 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -20,11 +20,7 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then XVFB="xvfb-run " fi -if [ "${TRAVIS_CPU_ARCH}" == "arm64" ]; then - PYTEST_CMD="pytest -m \"$PATTERN\" --durations=10 --junitxml=test-data.xml $TEST_ARGS $COVERAGE pandas"; -else - PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n auto --dist=loadfile -s --strict --durations=10 --junitxml=test-data.xml $TEST_ARGS $COVERAGE pandas" -fi +PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n auto --dist=loadfile -s --strict --durations=10 --junitxml=test-data.xml $TEST_ARGS $COVERAGE pandas" echo $PYTEST_CMD sh -c "$PYTEST_CMD" diff --git a/ci/setup_env.sh b/ci/setup_env.sh index a61440382245ed..4ef89d834e30cb 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -37,11 +37,11 @@ else fi if [ "${TRAVIS_CPU_ARCH}" == "arm64" ]; then - CONDA_URL="https://github.com/conda-forge/miniforge/releases/download/4.8.2-1/Miniforge3-4.8.2-1-Linux-aarch64.sh"; + CONDA_URL="https://github.com/conda-forge/miniforge/releases/download/4.8.2-1/Miniforge3-4.8.2-1-Linux-aarch64.sh" else - CONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-$CONDA_OS.sh"; + CONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-$CONDA_OS.sh" fi -wget -q $CONDA_URL -O miniconda.sh; +wget -q $CONDA_URL -O miniconda.sh chmod +x miniconda.sh # Installation path is required for ARM64 platform as miniforge script installs in path $HOME/miniforge3.