diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-01-24 18:09:11 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-01-26 16:38:31 +0100 |
commit | 8a21c5942b15eb76818db98dd8efb74fb20fbfdb (patch) | |
tree | ebf1605f78dce10b62f068a9a15a069c9b6dd0b5 /.ci | |
parent | Use hunter for bundled dependencies (diff) | |
download | nheko-8a21c5942b15eb76818db98dd8efb74fb20fbfdb.tar.xz |
Port CI to hunter
Diffstat (limited to '.ci')
-rwxr-xr-x | .ci/install.sh | 10 | ||||
-rwxr-xr-x | .ci/script.sh | 26 |
2 files changed, 18 insertions, 18 deletions
diff --git a/.ci/install.sh b/.ci/install.sh index 776d4d23..f700f303 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -3,9 +3,6 @@ set -ex if [ "$TRAVIS_OS_NAME" = "osx" ]; then - brew tap nlohmann/json - brew install --with-cmake nlohmann_json - curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py sudo python get-pip.py @@ -25,11 +22,4 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://cmake.org/files/v3.15/cmake-3.15.5-Linux-x86_64.sh sudo sh cmake-3.15.5-Linux-x86_64.sh --skip-license --prefix=/usr/local - - mkdir -p build-libsodium - ( cd build-libsodium - curl -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.17.tar.gz -o libsodium-1.0.17.tar.gz - tar xfz libsodium-1.0.17.tar.gz - cd libsodium-1.0.17/ - ./configure && make && sudo make install ) fi diff --git a/.ci/script.sh b/.ci/script.sh index 7e9a8d81..9e05998d 100755 --- a/.ci/script.sh +++ b/.ci/script.sh @@ -19,19 +19,29 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CMAKE_PREFIX_PATH=/usr/local/opt/qt5 fi -# Build & install dependencies -cmake -GNinja -Hdeps -B.deps \ - -DUSE_BUNDLED_BOOST="${USE_BUNDLED_BOOST}" \ - -DUSE_BUNDLED_CMARK="${USE_BUNDLED_CMARK}" \ - -DUSE_BUNDLED_JSON="${USE_BUNDLED_JSON}" \ - -DMTX_STATIC="${MTX_STATIC:-OFF}" -cmake --build .deps +mkdir -p .deps/usr .hunter # Build nheko + +if [ "$TRAVIS_OS_NAME" = "osx" ]; then +cmake -GNinja -H. -Bbuild \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=.deps/usr \ + -DHUNTER_ROOT=".hunter" \ + -DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHUNTER_CONFIGURATION_TYPES=RelWithDebInfo \ + -DUSE_BUNDLED_OPENSSL=OFF \ + -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl \ + -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include +else cmake -GNinja -H. -Bbuild \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=.deps/usr \ - -DBUILD_SHARED_LIBS=ON # weird workaround, as the boost 1.70 cmake files seem to be broken? + -DHUNTER_ROOT=".hunter" \ + -DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHUNTER_CONFIGURATION_TYPES=RelWithDebInfo \ + -DUSE_BUNDLED_OPENSSL=OFF +fi cmake --build build if [ "$TRAVIS_OS_NAME" = "osx" ]; then |