diff --git a/.ci/test.sh b/.ci/test.sh index cf3f51e3899a..e670e0c333e4 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -18,7 +18,7 @@ source activate $CONDA_ENV cd $BUILD_DIRECTORY -if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then +if [[ $TASK == "check-docs" ]]; then cd $BUILD_DIRECTORY/docs conda install -q -y -n $CONDA_ENV -c conda-forge doxygen pip install --user -r requirements.txt rstcheck git+git://github.com/linkchecker/linkchecker.git@b9390c9ef63f7e1e210b48bc7fe97f76e8d39501 @@ -41,7 +41,7 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then exit 0 fi -if [[ $TRAVIS == "true" ]] && [[ $TASK == "lint" ]]; then +if [[ $TASK == "lint" ]]; then conda install -q -y -n $CONDA_ENV \ pycodestyle \ pydocstyle \ diff --git a/.travis.yml b/.travis.yml index 930cc4d0f19e..42175ce71e55 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ git: depth: 5 os: - - linux + # - linux - osx dist: focal osx_image: xcode12.2 @@ -20,8 +20,8 @@ env: - TASK=sdist - TASK=bdist - TASK=if-else - - TASK=lint - - TASK=check-docs + # - TASK=lint + # - TASK=check-docs - TASK=mpi METHOD=source - TASK=mpi METHOD=pip PYTHON_VERSION=3.7 - TASK=mpi METHOD=wheel PYTHON_VERSION=3.7 @@ -37,10 +37,10 @@ matrix: env: TASK=gpu METHOD=pip PYTHON_VERSION=3.6 - os: osx env: TASK=gpu METHOD=wheel PYTHON_VERSION=3.7 - - os: osx - env: TASK=lint - - os: osx - env: TASK=check-docs + # - os: osx + # env: TASK=lint + # - os: osx + # env: TASK=check-docs before_install: - test -n $CC && unset CC diff --git a/.vsts-ci.yml b/.vsts-ci.yml index d6e13e482cb9..eec6d4a1250f 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -20,8 +20,7 @@ jobs: ########################################### variables: COMPILER: gcc - pool: - vmImage: 'ubuntu-latest' + pool: sh-ubuntu container: ubuntu1404 strategy: maxParallel: 6 @@ -42,6 +41,10 @@ jobs: TASK: gpu METHOD: source PYTHON_VERSION: 3.6 + check_docs: + TASK: check-docs + lint: + TASK: lint steps: - script: | echo "##vso[task.setvariable variable=BUILD_DIRECTORY]$BUILD_SOURCESDIRECTORY"