From 55cf466e302ab999067399e6566f113e324e9199 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Sat, 16 Nov 2019 02:59:01 +0000 Subject: [PATCH 1/6] CI: Adding dbs explicitly to travis --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 398dd07089ef9..95fc1e5481ed0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: python python: 3.5 +services: + - postgresql + - mysql # To turn off cached cython files and compiler cache # set NOCACHE-true From 237a5d8527da4350e75427ee7a4f23e7add60259 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Sat, 16 Nov 2019 03:39:52 +0000 Subject: [PATCH 2/6] Trying with postgres 9.5 --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95fc1e5481ed0..e3696260fc285 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ language: python python: 3.5 -services: - - postgresql - - mysql +addons: + postgresql: "9.5" # To turn off cached cython files and compiler cache # set NOCACHE-true From b970165c6485217bf1e9c7720d76662cfb65e37c Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Sat, 16 Nov 2019 03:50:41 +0000 Subject: [PATCH 3/6] Adding traces about temporary files and processes --- .travis.yml | 2 +- ci/setup_env.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e3696260fc285..259cdc0c6d1c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python python: 3.5 addons: - postgresql: "9.5" + postgresql: "9.6" # To turn off cached cython files and compiler cache # set NOCACHE-true diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 4d454f9c5041a..2ce933e9a58a5 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -141,6 +141,10 @@ conda list # Install DB for Linux if [ "${TRAVIS_OS_NAME}" == "linux" ]; then + echo "ls /tmp/*" + ls /tmp/* + echo "ps -ef" + ps -ef echo "installing dbs" mysql -e 'create database pandas_nosetest;' psql -c 'create database pandas_nosetest;' -U postgres From b5b62c7b9703d6a99dd6ccf77bc5fa71099459a1 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Sat, 16 Nov 2019 04:00:26 +0000 Subject: [PATCH 4/6] Showing traces earlier, and include hidden files --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 259cdc0c6d1c3..01b7dfda31ce2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -81,6 +81,10 @@ before_install: install: + - echo "ls -a /tmp/*" + - ls -a /tmp/* + - echo "ps -ef" + - ps -ef - echo "install start" - ci/prep_cython_cache.sh - ci/setup_env.sh From 870a2ac0ba9b7bf5178fe3ae4b7553f80c6c7f05 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Sat, 16 Nov 2019 04:08:09 +0000 Subject: [PATCH 5/6] Using port to connect, instead of socket --- .travis.yml | 4 ---- ci/setup_env.sh | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 01b7dfda31ce2..259cdc0c6d1c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -81,10 +81,6 @@ before_install: install: - - echo "ls -a /tmp/*" - - ls -a /tmp/* - - echo "ps -ef" - - ps -ef - echo "install start" - ci/prep_cython_cache.sh - ci/setup_env.sh diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 2ce933e9a58a5..efb8874f6f3c3 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -141,13 +141,9 @@ conda list # Install DB for Linux if [ "${TRAVIS_OS_NAME}" == "linux" ]; then - echo "ls /tmp/*" - ls /tmp/* - echo "ps -ef" - ps -ef echo "installing dbs" mysql -e 'create database pandas_nosetest;' - psql -c 'create database pandas_nosetest;' -U postgres + psql -p 5432 -c 'create database pandas_nosetest;' -U postgres else echo "not using dbs on non-linux Travis builds or Azure Pipelines" fi From bd500a6d74439bc84d82b06bb1ec1f11ff623cd6 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Sat, 16 Nov 2019 15:58:10 +0000 Subject: [PATCH 6/6] Uninstalling conda postgres --- .travis.yml | 2 -- ci/setup_env.sh | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 259cdc0c6d1c3..398dd07089ef9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ language: python python: 3.5 -addons: - postgresql: "9.6" # To turn off cached cython files and compiler cache # set NOCACHE-true diff --git a/ci/setup_env.sh b/ci/setup_env.sh index efb8874f6f3c3..0e8d6fb7cd35a 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -114,6 +114,11 @@ echo "w/o removing anything else" conda remove pandas -y --force || true pip uninstall -y pandas || true +echo +echo "remove postgres if has been installed with conda" +echo "we use the one from the CI" +conda remove postgresql -y --force || true + echo echo "conda list pandas" conda list pandas @@ -143,7 +148,7 @@ conda list if [ "${TRAVIS_OS_NAME}" == "linux" ]; then echo "installing dbs" mysql -e 'create database pandas_nosetest;' - psql -p 5432 -c 'create database pandas_nosetest;' -U postgres + psql -c 'create database pandas_nosetest;' -U postgres else echo "not using dbs on non-linux Travis builds or Azure Pipelines" fi