]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
travis-ci: add osx builds 140/head
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 18 May 2019 12:04:58 +0000 (17:04 +0500)
committerIlya Shipitsin <chipitsine@gmail.com>
Sat, 18 May 2019 12:04:58 +0000 (17:04 +0500)
.travis.yml

index 6c1b262522685e8ea2294cc0a097833aaec0d4d3..47f49b825e0f8c4123a521cf025e7fbab49e98b5 100644 (file)
@@ -7,31 +7,26 @@ language: c
 
 addons:
   apt:
-    packages:
-    - cpanminus
+    packages: [ cpanminus ]
+  homebrew:
+    packages: [ cpanminus ]
 
 env:
   global:
     - PREFIX=${HOME}/opt
-    - LD_LIBRARY_PATH=${PREFIX}/lib
     - PATH=${PREFIX}/bin:${PATH}
+    - OPENSSL_BRANCH=master
 
 matrix:
   include:
-    - env: OPENSSL_BRANCH=master
-      os: linux
+    - os: linux
       compiler: gcc
-    - env:
-      - OPENSSL_BRANCH=master
-      - ASAN=-DASAN=1
+    - env: ASAN=-DASAN=1
       os: linux
       compiler: gcc
-#    - env: OPENSSL_BRANCH=OpenSSL_1_1_0-stable
-#      os: linux
-#      compiler: gcc
-#    - env: OPENSSL_BRANCH=OpenSSL_1_0_2-stable
-#      os: linux
-#      compiler: gcc
+    - os: osx
+      compiler: clang
+
 
 before_script:
   - sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1)
@@ -41,8 +36,11 @@ before_script:
   - cd ..
 
 script:
+  - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}"; fi
+  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export DYLD_LIBRARY_PATH="${PREFIX}/lib:${DYLD_LIBRARY_PATH:-}"; fi
   - mkdir build
   - cd build
   - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ${ASAN} ..
   - make
+  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then cp bin/gost.{dylib,so}; fi # this hack is most probably related to https://github.com/openssl/openssl/issues/727
   - make test CTEST_OUTPUT_ON_FAILURE=1