From c3b9853a4fdc382a078a8760c3c23ee4e294b9b4 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 16 Nov 2020 09:10:04 +0000 Subject: [PATCH 1/7] Adding Power support(ppc64le) with continuous integration/testing to the project stays architecture independent --- .travis.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd1e49f..47cc423 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,10 +22,32 @@ matrix: - env: PYTHON_VERSION=3.8 os: osx language: generic + - env: PYTHON_VERSION=3.8 + os: linux + language: generic + arch: ppc64le + - env: PYTHON_VERSION=3.7 + os: linux + arch: ppc64le + language: generic install: -- git clone --depth 1 git://github.com/astropy/ci-helpers.git -- source ci-helpers/travis/setup_conda.sh -- pip install --no-deps -e . + - if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then + wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe; + chmod +x conda.exe; + export CONDA_ALWAYS_YES=1; + ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda conda-build pytest six pytest-cov ; + export PATH="$HOME/miniconda/bin:$PATH"; + hash -r; + pip install Pillow; + pip install numpy; + pip install trollimage; + pip install aggdraw; + pip install --no-deps -e .; + else + git clone --depth 1 git://github.com/astropy/ci-helpers.git; + source ci-helpers/travis/setup_conda.sh; + pip install --no-deps -e .; + fi script: - pytest --cov=pydecorate test.py after_success: From 700c431b97ecdc6c1d09618f1a90e43c8f69c5d2 Mon Sep 17 00:00:00 2001 From: asellappen <31274494+asellappen@users.noreply.github.com> Date: Tue, 17 Nov 2020 10:34:54 +0530 Subject: [PATCH 2/7] removed conda-build pytest six pytest-cov --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 47cc423..29e01db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ install: wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe; chmod +x conda.exe; export CONDA_ALWAYS_YES=1; - ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda conda-build pytest six pytest-cov ; + ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda ; export PATH="$HOME/miniconda/bin:$PATH"; hash -r; pip install Pillow; From b708356c28e1f00cd80ba70870a6905e62679219 Mon Sep 17 00:00:00 2001 From: asellappen <31274494+asellappen@users.noreply.github.com> Date: Tue, 17 Nov 2020 10:43:30 +0530 Subject: [PATCH 3/7] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 29e01db..23fd37c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ matrix: language: generic install: - if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then - wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe; + wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe pytest; chmod +x conda.exe; export CONDA_ALWAYS_YES=1; ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda ; From 84dc6074fec4909f01aff8527f2525b723d52645 Mon Sep 17 00:00:00 2001 From: asellappen <31274494+asellappen@users.noreply.github.com> Date: Tue, 17 Nov 2020 11:04:58 +0530 Subject: [PATCH 4/7] added conda-build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 23fd37c..c5126ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ matrix: language: generic install: - if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then - wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe pytest; + wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe conda-build pytest; chmod +x conda.exe; export CONDA_ALWAYS_YES=1; ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda ; From 2ea156c39957cfcf6f0a9b1f15339c16d7ba494a Mon Sep 17 00:00:00 2001 From: asellappen <31274494+asellappen@users.noreply.github.com> Date: Tue, 17 Nov 2020 11:11:05 +0530 Subject: [PATCH 5/7] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c5126ad..ead9993 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ matrix: language: generic install: - if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then - wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe conda-build pytest; + wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe pytest-cov; chmod +x conda.exe; export CONDA_ALWAYS_YES=1; ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda ; From ebafc51753bc559654dddaaca707b6eb4f9ca146 Mon Sep 17 00:00:00 2001 From: asellappen <31274494+asellappen@users.noreply.github.com> Date: Tue, 17 Nov 2020 11:21:37 +0530 Subject: [PATCH 6/7] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ead9993..ea04d2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ matrix: language: generic install: - if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then - wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe pytest-cov; + wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe pytest pytest-cov; chmod +x conda.exe; export CONDA_ALWAYS_YES=1; ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda ; From a69d9d0b32b0f02fab380f69e29b92ff8f66e1e8 Mon Sep 17 00:00:00 2001 From: asellappen <31274494+asellappen@users.noreply.github.com> Date: Tue, 17 Nov 2020 11:30:42 +0530 Subject: [PATCH 7/7] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ea04d2a..77128b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ matrix: language: generic install: - if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then - wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe pytest pytest-cov; + wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-4.7.11-linux-ppc64le.exe -O conda.exe conda-build pytest pytest-cov; chmod +x conda.exe; export CONDA_ALWAYS_YES=1; ./conda.exe create -p $HOME/miniconda python=$TRAVIS_PYTHON_VERSION conda ;