diff --git a/.appveyor.yml b/.appveyor.yml index fe724bac..9aeef773 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,8 +1,6 @@ version: '{build}' -image: - - Ubuntu1604 - - Ubuntu1804 +image: Ubuntu1804 configuration: Release @@ -19,38 +17,20 @@ skip_commits: init: - ps: Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))" -install: git submodule update --init --recursive - -for: -- - matrix: - only: - - image: Ubuntu1604 - before_build: - - ./configure - build_script: - - make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4) - test_script: - - .ci/appveyor-deb-install-test.sh - - sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps - - sudo .ci/start-se-openvpn.sh - - sudo .ci/run-openvpn-tests.sh - -- - matrix: - only: - - image: Ubuntu1804 - before_build: - - sh: "if [ ${APPVEYOR_REPO_TAG} == \"true\" ]; then .ci/appveyor-create-release-tarball.sh\nfi" - - ./configure - build_script: - - make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4) - - .ci/memory-leak-test.sh - test_script: - - .ci/appveyor-deb-install-test.sh - - sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps - - sudo .ci/start-se-openvpn.sh - - sudo .ci/run-openvpn-tests.sh +install: + - sudo apt-get -y install libsodium-dev +before_build: + - sh: "if [ ${APPVEYOR_REPO_TAG} == \"true\" ]; then .ci/appveyor-create-release-tarball.sh\nfi" + - git submodule update --init --recursive + - ./configure +build_script: + - make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4) + - .ci/memory-leak-test.sh +test_script: + - .ci/appveyor-deb-install-test.sh + - sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps + - sudo .ci/start-se-openvpn.sh + - sudo .ci/run-openvpn-tests.sh deploy: description: 'automatic release' diff --git a/.ci/azure-pipelines/linux.yml b/.ci/azure-pipelines/linux.yml index d8f1512c..f1982278 100644 --- a/.ci/azure-pipelines/linux.yml +++ b/.ci/azure-pipelines/linux.yml @@ -2,9 +2,9 @@ jobs: - job: ubuntu_x86_64 displayName: 'Ubuntu (x86_64)' pool: - vmImage: ubuntu-16.04 + vmImage: ubuntu-18.04 steps: - - script: sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev + - script: sudo apt update && sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev displayName: 'Prepare environment' - script: "$(Build.SourcesDirectory)/.ci/azure-pipelines/linux_build.sh" env: diff --git a/.ci/azure-pipelines/macos.yml b/.ci/azure-pipelines/macos.yml index acbd76e1..2e29f5e9 100644 --- a/.ci/azure-pipelines/macos.yml +++ b/.ci/azure-pipelines/macos.yml @@ -3,7 +3,7 @@ jobs: pool: vmImage: macOS-latest steps: - - script: brew install cmake ninja ncurses readline openssl zlib + - script: brew install pkg-config cmake ninja ncurses readline libsodium openssl zlib displayName: 'Prepare environment' - script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/macos_build.sh' env: diff --git a/.ci/azure-pipelines/windows-steps.yml b/.ci/azure-pipelines/windows-steps.yml index 9d053434..8e9168d3 100644 --- a/.ci/azure-pipelines/windows-steps.yml +++ b/.ci/azure-pipelines/windows-steps.yml @@ -15,7 +15,7 @@ steps: path: 'C:/vcpkg/installed' displayName: 'Environment storage' - script: | - vcpkg install openssl zlib --triplet ${{parameters.vcpkgTriplet}} + vcpkg install libsodium openssl zlib --triplet ${{parameters.vcpkgTriplet}} workingDirectory: C:/vcpkg displayName: 'Prepare environment' - script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/windows_build.bat' diff --git a/.cirrus.yml b/.cirrus.yml index 5172b1f4..63b67383 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -13,7 +13,7 @@ FreeBSD_task: freebsd_instance: image_family: freebsd-12-1 prepare_script: - - pkg install -y cmake git $SSL + - pkg install -y pkgconf cmake git libsodium $SSL - git submodule update --init --recursive configure_script: - ./configure diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 92f5893e..f6c1cedd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,7 @@ - .cirrus.yml before_script: - REPOSITORY="$PWD" && cd .. - - apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev git file + - apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev git file - wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz && tar -xzf cmake-${CMAKE_VERSION}.tar.gz - cd cmake-${CMAKE_VERSION} && ./bootstrap && make install - cd "$REPOSITORY" && git submodule update --init --recursive diff --git a/.travis.yml b/.travis.yml index 61dee691..bff3cbae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ sudo: required -dist: xenial +dist: bionic language: c @@ -20,7 +20,8 @@ matrix: os: linux compiler: gcc - env: OPENSSL_VERSION="1.1.1c" LABEL="linux-ppc64le" CMAKE_VERSION="3.9.6" - os: linux-ppc64le + arch: ppc64le + os: linux compiler: gcc install: - wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz && tar -xzf cmake-${CMAKE_VERSION}.tar.gz @@ -35,6 +36,7 @@ matrix: os: linux compiler: gcc before_install: + - sudo apt-get -y install libsodium-dev - bash .ci/build-libressl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1) - env: LABEL="check stb files" os: linux @@ -49,7 +51,7 @@ matrix: - os: osx compiler: clang before_install: - - true + - brew install libsodium script: - ./configure - make -C build @@ -62,6 +64,7 @@ cache: - ${HOME}/opt before_install: + - sudo apt-get -y install libsodium-dev - bash .ci/build-openssl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1) script: