Przeglądaj źródła

Installation of CMake on Travis moved to script.

main
offa 7 lat temu
rodzic
commit
6f178e68d2
2 zmienionych plików z 19 dodań i 9 usunięć
  1. +1
    -9
      .travis.yml
  2. +18
    -0
      script/ci_install.sh

+ 1
- 9
.travis.yml Wyświetl plik

@@ -24,15 +24,7 @@ matrix:


install:
- mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}"
- |
if [[ ! -d "$(ls -A ${DEPENDENCY_DIR}/cmake)" ]]; then
CMAKE_URL="https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz"
mkdir -p cmake && travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake
fi
export PATH="${DEPENDENCY_DIR}/cmake/bin:${PATH}"
- cd ${TRAVIS_BUILD_DIR}

- script/ci_install.sh

script:
- script/ci_build.sh

+ 18
- 0
script/ci_install.sh Wyświetl plik

@@ -0,0 +1,18 @@
#!/bin/bash

BUILD_DIR=${TRAVIS_BUILD_DIR}

## Install CMake
mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}"

if [[ ! -d "$(ls -A ${DEPENDENCY_DIR}/cmake)" ]]; then
CMAKE_URL="https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz"
mkdir -p cmake
wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake
fi

export PATH="${DEPENDENCY_DIR}/cmake/bin:${PATH}"
cmake --version

cd ${BUILD_DIR}


Ładowanie…
Anuluj
Zapisz