Преглед изворни кода

Change to fetching common ci code for eventual use. Also add in config
for dealing with SourceForge file release system.

Rene Rivera пре 10 година
родитељ
комит
c375f2ca16
1 измењених фајлова са 22 додато и 22 уклоњено
  1. 22 22
      .travis.yml

+ 22 - 22
.travis.yml

@@ -31,6 +31,8 @@ addons:
       - doxygen
       - dvipsk-ja
       - texlive
+      - sshpass
+  ssh_known_hosts: frs.sourceforge.net
 
 env:
   matrix:
@@ -39,37 +41,35 @@ env:
 matrix:
   exclude:
     - env: TRAVIS_EMPTY_JOB_WORKAROUND=true
+
   include:
     # Simple integrated status tests check.
-    - env: STATUS_TESTS=true
+    - env:
+      - SCRIPT=ci_boost_status
     
     # Build release package for LF end-of-line style text files.
-    - env: RELEASE_BUILD=LF
+    - env:
+      - SCRIPT=ci_boost_release
+      - RELEASE_BUILD=LF
     
     # Build release package for CRLF end-of-line style text files (i.e. for Windows).
-    - env: RELEASE_BUILD=CRLF
+    - env:
+      - SCRIPT=ci_boost_release
+      - RELEASE_BUILD=CRLF
     
     # Library requirements tests.
-    - env: LIBRARY_CHECK=true
+    - env:
+      - SCRIPT=ci_boost_library_check
 
 before_install:
-  # Fetch the script to do the actual building/testing.
-  - |
-    if [[ "${STATUS_TESTS}" == "true" ]]; then
-      wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_status.py" -O ../script.py
-    fi
-  - |
-    if [[ "${RELEASE_BUILD}" == "LF" || "${RELEASE_BUILD}" == "CRLF" ]]; then
-      wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_release.py" -O ../script.py
-    fi
+  # Fetch the scripts to do the actual building/testing.
   - |
-    if [[ "${LIBRARY_CHECK}" == "true" ]]; then
-      wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_library_check.py" -O ../script.py
-    fi
+    wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_common.py" -P ..
+    wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/${SCRIPT}.py" -P ..
 
-install: python "${TRAVIS_BUILD_DIR}/../script.py" install
-before_script: python "${TRAVIS_BUILD_DIR}/../script.py" before_script
-script: python "${TRAVIS_BUILD_DIR}/../script.py" script
-after_success: python "${TRAVIS_BUILD_DIR}/../script.py" after_success
-after_failure: python "${TRAVIS_BUILD_DIR}/../script.py" after_failure
-after_script: python "${TRAVIS_BUILD_DIR}/../script.py" after_script
+install: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" install
+before_script: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" before_script
+script: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" script
+after_success: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" after_success
+after_failure: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" after_failure
+after_script: python "${TRAVIS_BUILD_DIR}/../${SCRIPT}.py" after_script

粤ICP备19079148号