Skip to content

Commit 8eac141

Browse files
committed
.travis.yml: Use docker images with YCM pre-installed
1 parent da208ae commit 8eac141

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.travis.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,15 @@ git:
301301
services:
302302
- docker
303303
before_install:
304-
- docker pull drdanz/cmake:cmake-${TRAVIS_CMAKE_VERSION}
304+
- docker pull drdanz/ycm:cmake-${TRAVIS_CMAKE_VERSION}_ycm-${TRAVIS_YCM_VERSION}
305305
- >-
306306
docker run -it -d \
307307
-v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR \
308308
-v $HOME/.ccache:$HOME/.ccache \
309309
-w $TRAVIS_BUILD_DIR \
310310
--name yarp-builder \
311-
drdanz/cmake:cmake-${TRAVIS_CMAKE_VERSION}
311+
drdanz/ycm:cmake-${TRAVIS_CMAKE_VERSION}_ycm-${TRAVIS_YCM_VERSION}
312+
- >-
312313
- docker exec -it yarp-builder cmake --version
313314
- docker exec -it yarp-builder mkdir $TRAVIS_BUILD_DIR/build
314315
install: skip
@@ -469,33 +470,38 @@ matrix:
469470

470471
- stage: cmake
471472
<<: *cmake_configure_template
472-
name: "Configure using CMake 3.12"
473+
name: "Configure using CMake 3.12 and YCM 0.11.0"
473474
env:
474475
- TRAVIS_CMAKE_VERSION="3.12"
476+
- TRAVIS_YCM_VERSION="0.11.0"
475477

476478
- stage: cmake
477479
<<: *cmake_configure_template
478-
name: "Configure using CMake 3.13"
480+
name: "Configure using CMake 3.13 and YCM 0.11.0"
479481
env:
480482
- TRAVIS_CMAKE_VERSION="3.13"
483+
- TRAVIS_YCM_VERSION="0.11.0"
481484

482485
- stage: cmake
483486
<<: *cmake_configure_template
484-
name: "Configure using CMake 3.14"
487+
name: "Configure using CMake 3.14 and YCM 0.11.0"
485488
env:
486489
- TRAVIS_CMAKE_VERSION="3.14"
490+
- TRAVIS_YCM_VERSION="0.11.0"
487491

488492
- stage: cmake
489493
<<: *cmake_configure_template
490-
name: "Configure using CMake 3.15"
494+
name: "Configure using CMake 3.15 and YCM 0.11.0"
491495
env:
492496
- TRAVIS_CMAKE_VERSION="3.15"
497+
- TRAVIS_YCM_VERSION="0.11.0"
493498

494499
- stage: cmake
495500
<<: *cmake_configure_template
496-
name: "Configure using CMake 3.16"
501+
name: "Configure using CMake 3.16 and YCM 0.11.0"
497502
env:
498503
- TRAVIS_CMAKE_VERSION="3.16"
504+
- TRAVIS_YCM_VERSION="0.11.0"
499505

500506
- stage: test
501507
<<: *linux_gcc_build_template

0 commit comments

Comments
 (0)