diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2018-06-12 15:15:20 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-27 09:45:35 +0200 |
commit | c1d8ba47dd4340594fe05a8519feac878fc1d6e3 (patch) | |
tree | 43da1b4ecfe70ae13d46704a866e2b4933bcde22 | |
parent | dc4cc08c3a0cce6b86163f3767f4bdfe1b65e18b (diff) | |
download | libssh-c1d8ba47dd4340594fe05a8519feac878fc1d6e3.tar.gz libssh-c1d8ba47dd4340594fe05a8519feac878fc1d6e3.tar.xz libssh-c1d8ba47dd4340594fe05a8519feac878fc1d6e3.zip |
gitlab: Added builds for Windows using MinGW
Only the unit tests are run.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | .gitlab-ci.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d9623826..31710d84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ variables: FEDORA_BUILD: buildenv-fedora CENTOS7_BUILD: buildenv-centos7 TUMBLEWEED_BUILD: buildenv-tumbleweed + MINGW_BUILD: buildenv-mingw debian/openssl_1.0.x/aarch64: script: @@ -196,3 +197,41 @@ tumbleweed/static-analysis: when: on_failure paths: - build/scan + +# Unit testing only, no client and pkd testing, because cwrap is not available +# for MinGW +mingw64: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD + script: + - mkdir obj && cd obj && mingw64-cmake -DCMAKE_BUILD_TYPE=Debug + -DWITH_SSH1=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON + -DWITH_PCAP=ON -DWITH_TESTING=ON .. && make -j$(nproc) && + ctest --output-on-failure + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - build/ + +# Unit testing only, no client and pkd testing, because cwrap is not available +# for MinGW +mingw32: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD + script: + - mkdir obj && cd obj && mingw32-cmake -DCMAKE_BUILD_TYPE=Debug + -DWITH_SSH1=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON + -DWITH_PCAP=ON -DWITH_TESTING=ON .. && make -j$(nproc) && + ctest --output-on-failure + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - build/ |