Skip to content

Commit

Permalink
[ci] move CI jobs from Travis to Azure DevOps (fixes #3519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 23, 2020
1 parent d90a16d commit 552e170
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ git:
depth: 5

os:
- linux
# - linux
- osx
dist: focal
osx_image: xcode12.2
Expand All @@ -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
Expand All @@ -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
Expand Down
7 changes: 5 additions & 2 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
###########################################
variables:
COMPILER: gcc
pool:
vmImage: 'ubuntu-latest'
pool: sh-ubuntu
container: ubuntu1404
strategy:
maxParallel: 6
Expand All @@ -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"
Expand Down

0 comments on commit 552e170

Please sign in to comment.