Переглянути джерело

Testing with docker instead.

main
offa 7 роки тому
джерело
коміт
08f1a7bcc5
2 змінених файлів з 29 додано та 23 видалено
  1. +6
    -0
      .travis.yml
  2. +23
    -23
      script/ci_install.sh

+ 6
- 0
.travis.yml Переглянути файл

@@ -11,6 +11,9 @@ cache:
directories:
- ${DEPENDENCY_DIR}

services:
- docker


matrix:
include:
@@ -31,6 +34,9 @@ matrix:
- libc++-dev
sources: *sources

before_install:
- docker pull jorj/clang5_qt5
- docker run jorj/clang5_qt5 /bin/bash -c "${CXX} --version; cmake --version"

install:
- script/ci_install.sh

+ 23
- 23
script/ci_install.sh Переглянути файл

@@ -24,29 +24,29 @@ cd ${DEPENDENCY_DIR}


# --- LibC++
if [[ "${CXX}" = clang* ]]
then
if [[ ! -d "${DEPENDENCY_DIR}/llvm-source" ]]
then
LLVM_RELEASE=release_50
git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/llvm.git llvm-source
git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx
git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/libcxxabi.git llvm-source/projects/libcxxabi
fi
mkdir -p build && cd build
cmake -DCMAKE_C_COMPILER=${CC} \
-DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBCXX_ABI_UNSTABLE=ON \
../llvm-source
make cxx -j4
sudo make install-cxxabi install-cxx
rm -rf *
fi
#if [[ "${CXX}" = clang* ]]
#then
# if [[ ! -d "${DEPENDENCY_DIR}/llvm-source" ]]
# then
# LLVM_RELEASE=release_50
# git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/llvm.git llvm-source
# git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx
# git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/libcxxabi.git llvm-source/projects/libcxxabi
# fi
#
# mkdir -p build && cd build
#
# cmake -DCMAKE_C_COMPILER=${CC} \
# -DCMAKE_CXX_COMPILER=${CXX} \
# -DCMAKE_BUILD_TYPE=RelWithDebInfo \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DLIBCXX_ABI_UNSTABLE=ON \
# ../llvm-source
# make cxx -j4
#
# sudo make install-cxxabi install-cxx
# rm -rf *
#fi


cd ${BUILD_DIR}

Завантаження…
Відмінити
Зберегти