diff --git a/.Rbuildignore b/.Rbuildignore index 28b88c7..349e63c 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,6 +1,4 @@ environment-dev.yml -azure-pipelines.yml -.azure-pipelines .appveyor ^.*\.Rproj$ ^\.Rproj\.user$ diff --git a/.azure-pipelines/azure-pipelines-linux-clang.yml b/.azure-pipelines/azure-pipelines-linux-clang.yml deleted file mode 100644 index bc33f44..0000000 --- a/.azure-pipelines/azure-pipelines-linux-clang.yml +++ /dev/null @@ -1,44 +0,0 @@ -jobs: - - job: 'Linux_0' - strategy: - matrix: - clang_6: - llvm_version: '6.0' - clang_7: - llvm_version: '7' - clang_8: - llvm_version: '8' - clang_9: - llvm_version: '9' - clang_10: - llvm_version: '10' - pool: - vmImage: ubuntu-18.04 - variables: - CC: clang-$(llvm_version) - CXX: clang++-$(llvm_version) - timeoutInMinutes: 360 - steps: - - - script: | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - if [[ $(llvm_version) == '4.0' || $(llvm_version) == '5.0' ]]; then - sudo apt-get update - sudo apt-get --no-install-suggests --no-install-recommends install gcc-4.9 clang-$(llvm_version) - else - LLVM_VERSION=$(llvm_version) - get -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-$LLVM_VERSION main" - sudo apt-get update - sudo apt-get --no-install-suggests --no-install-recommends install clang-$(llvm_version) - fi - displayName: Install build toolchain - - - script: | - sudo apt-get install -y texlive-latex-base texlive-latex-recommended texinfo texlive-fonts-extra texlive-fonts-recommended - displayName: Install latex for R checks - - - bash: echo "##vso[task.prependpath]$CONDA/bin" - displayName: Add conda to PATH - - - template: unix-build.yml diff --git a/.azure-pipelines/azure-pipelines-linux-gcc.yml b/.azure-pipelines/azure-pipelines-linux-gcc.yml deleted file mode 100644 index 6358843..0000000 --- a/.azure-pipelines/azure-pipelines-linux-gcc.yml +++ /dev/null @@ -1,62 +0,0 @@ -jobs: - - job: 'Linux_1' - strategy: - matrix: - gcc_6: - gcc_version: '6' - gcc_6_novendor: - gcc_version: '6' - novendor: '1' - gcc_7: - gcc_version: '7' - gcc_7_novendor: - gcc_version: '7' - novendor: '1' - gcc_7_novendor_dev: - gcc_version: '7' - novendor: '1' - dev_xtensor: '1' - gcc_8: - gcc_version: '8' - gcc_8_novendor: - gcc_version: '8' - novendor: '1' - gcc_8_novendor_dev: - gcc_version: '8' - novendor: '1' - dev_xtensor: '1' - gcc_9: - gcc_version: '9' - gcc_9_novendor: - gcc_version: '9' - novendor: '1' - gcc_9_novendor_dev: - gcc_version: '9' - novendor: '1' - dev_xtensor: '1' - pool: - vmImage: ubuntu-18.04 - variables: - CC: gcc-$(gcc_version) - CXX: g++-$(gcc_version) - NOVENDOR: ${novendor} - USE_DEV_XTENSOR_R: ${dev_xtensor} - timeoutInMinutes: 360 - steps: - - - script: | - if [[ $(gcc_version) == '6' || $(gcc_version) == '7' || $(gcc_version) == '8' ]]; then - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get --no-install-suggests --no-install-recommends install g++-$(gcc_version) - fi - displayName: Install build toolchain - - - script: | - sudo apt-get install -y texlive-latex-base texlive-latex-recommended texinfo texlive-fonts-extra texlive-fonts-recommended - displayName: Install latex for R checks - - - bash: echo "##vso[task.prependpath]$CONDA/bin" - displayName: Add conda to PATH - - - template: unix-build.yml diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml deleted file mode 100644 index a8a635b..0000000 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ /dev/null @@ -1,25 +0,0 @@ -jobs: - - job: 'OSX' - strategy: - matrix: - macOS_12: - image_name: 'macOS-12' - osx_platform: 1 - pool: - vmImage: $(image_name) - variables: - CC: clang - CXX: clang++ - timeoutInMinutes: 360 - steps: - - script: | - echo "Removing homebrew for Azure to avoid conflicts with conda" - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" - displayName: Remove homebrew - - - bash: | - echo "##vso[task.prependpath]$CONDA/bin" - sudo chown -R $USER $CONDA - displayName: Add conda to PATH - - - template: unix-build.yml diff --git a/.azure-pipelines/unix-build.yml b/.azure-pipelines/unix-build.yml deleted file mode 100644 index 9b781f2..0000000 --- a/.azure-pipelines/unix-build.yml +++ /dev/null @@ -1,57 +0,0 @@ -steps: - - script: | - conda config --set always_yes yes --set changeps1 no - conda update -q conda - conda env create --file environment-dev.yml - displayName: Install dependencies - - - script: | - # If NOVENDOR is set, install xtensor-r and dependencies in conda environment. - # If USE_DEV_XTENSOR_R is set, xtensor-r will be installed from source instead - # of using the conda package - if [[ $NOVENDOR == 1 ]]; then - if [[ $USE_DEV_XTENSOR_R == 1 ]]; then - source activate xtensor-dev - conda install xtensor==0.24.4 xsimd=10.0.0 cmake -c conda-forge; - git clone https://github.com/xtensor-stack/xtensor-r.git; - cd xtensor-r; mkdir build; cd build; - cmake -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX ..; - make install; - cd ../..; - else - conda install -n xtensor-dev xtensor-r==0.14.0 -c conda-forge; - fi - fi - displayName: Install NOVENDOR dependencies - workingDirectory: $(Build.BinariesDirectory) - - - script: | - source activate xtensor-dev - R CMD build $(Build.SourcesDirectory); - displayName: Build Xtensor.R - workingDirectory: $(Build.BinariesDirectory) - - - script: | - source activate xtensor-dev - if [[ $(uname -s) == Darwin* ]]; then - export NO_MANUAL=--no-manual; - fi - if [[ $NOVENDOR == 1 ]]; then - echo "Running R CMD check with --novendor argument"; - echo "R CMD check --install-args=\"--configure-args='--novendor'\" $NO_MANUAL ./xtensor_*.tar.gz" - R CMD check --install-args="--configure-args='--novendor'" $NO_MANUAL ./xtensor_*.tar.gz || ( - cat xtensor-stack/Xtensor.R/xtensor.Rcheck/00install.out && - cat xtensor-stack/Xtensor.R/xtensor.Rcheck/00check.log && - cat xtensor-stack/Xtensor.R/xtensor.Rcheck/Rdlatex.log - ); - else - echo "Running R CMD check with --as-cran argument."; - echo "R CMD check --as-cran $NO_MANUAL ./xtensor_*.tar.gz" - R CMD check --as-cran $NO_MANUAL ./xtensor_*.tar.gz || ( - cat xtensor-stack/Xtensor.R/xtensor.Rcheck/00install.out && - cat xtensor-stack/Xtensor.R/xtensor.Rcheck/00check.log && - cat xtensor-stack/Xtensor.R/xtensor.Rcheck/Rdlatex.log - ); - fi - displayName: Check R package - workingDirectory: $(Build.BinariesDirectory) diff --git a/README.md b/README.md index 73419d3..779e5c0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ![Xtensor.R](./man/figures/xtensor-r.svg) -[![Travis](https://travis-ci.org/xtensor-stack/Xtensor.R.svg?branch=master)](https://travis-ci.org/xtensor-stack/Xtensor.R) -[![Appveyor](https://ci.appveyor.com/api/projects/status/xk0hlhsk90vex36n?svg=true)](https://ci.appveyor.com/project/xtensor-stack/xtensor-r-7j42j) +[![GHA Linux](https://github.com/xtensor-stack/Xtensor.R/actions/workflows/linux.yml/badge.svg)](https://github.com/xtensor-stack/Xtensor.R/actions/workflows/linux.yml) +[![GHA OSX](https://github.com/xtensor-stack/Xtensor.R/actions/workflows/osx.yml/badge.svg)](https://github.com/xtensor-stack/Xtensor.R/actions/workflows/osx.yml) [![CRAN status](https://www.r-pkg.org/badges/version/xtensor)](https://CRAN.R-project.org/package=xtensor) [![Documentation](http://readthedocs.org/projects/xtensor-r/badge/?version=latest)](https://xtensor-r.readthedocs.io/en/latest/?badge=latest) [![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/QuantStack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)