]> git.proxmox.com Git - mirror_acme.sh.git/blobdiff - .travis.yml
fix issue
[mirror_acme.sh.git] / .travis.yml
index 8e00e2514005b611446fca081c5aecc4f2b72493..94848c17d4aa65d50a5b8b3b4f2cd9772c198668 100644 (file)
@@ -16,13 +16,26 @@ addons:
     packages:\r
     - shellcheck\r
 \r
-#before_install:\r
-#  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update          ; fi\r
-#  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install shellcheck; fi\r
+install:\r
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then \r
+      brew update && brew install openssl;\r
+      brew info openssl;\r
+      ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/;\r
+      ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/;\r
+      ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/openssl;\r
+      _old_path="$PATH";\r
+      echo "PATH=$PATH";\r
+      export PATH="";\r
+      export OPENSSL_BIN="/usr/local/openssl";\r
+      openssl version 2>&1 || true;\r
+      $OPENSSL_BIN version 2>&1 || true;\r
+      export PATH="$_old_path";\r
+    fi\r
   \r
 script:\r
   - echo "TEST_LOCAL=$TEST_LOCAL"\r
   - echo "NGROK_TOKEN=$(echo "$NGROK_TOKEN" | wc -c)"\r
+  - which openssl && openssl version\r
   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -sSL $SHFMT_URL -o ~/shfmt ; fi\r
   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x ~/shfmt ; fi\r
   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ~/shfmt -l -w -i 2 . ; fi\r
@@ -31,7 +44,8 @@ script:
   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck -e SC2021,SC2126,SC2034 **/*.sh && echo "shellcheck OK" ; fi\r
   - cd ..\r
   - git clone https://github.com/Neilpang/acmetest.git && cp -r acme.sh acmetest/ && cd acmetest\r
-  - sudo NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh\r
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$NGROK_TOKEN" ]]; then sudo NGROK_TOKEN="$NGROK_TOKEN" ./letest.sh ; fi\r
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$NGROK_TOKEN" ]]; then sudo NGROK_TOKEN="$NGROK_TOKEN" OPENSSL_BIN="$OPENSSL_BIN" ./letest.sh ; fi\r
 \r
 \r
 matrix:\r