diff options
| author | luqiuwen <[email protected]> | 2019-12-25 18:33:30 +0800 |
|---|---|---|
| committer | 陆秋文 <[email protected]> | 2020-01-02 16:55:52 +0800 |
| commit | 32b926b505cc34bb45198f0048cf427728d849ac (patch) | |
| tree | 7590ae5021327bf4cae45cce54d7c95f65ac1283 /ci | |
| parent | e1489275a36861c168f5eed1828f291cc92a6d6f (diff) | |
迁移到PULP3。
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/perpare_pulp3_netrc.sh | 3 | ||||
| -rw-r--r-- | ci/travis.sh | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ci/perpare_pulp3_netrc.sh b/ci/perpare_pulp3_netrc.sh new file mode 100644 index 0000000..8414bbb --- /dev/null +++ b/ci/perpare_pulp3_netrc.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh +set -evx +echo "machine ${PULP3_SERVER_URL}\nlogin ${PULP3_SERVER_LOGIN}\npassword ${PULP3_SERVER_PASSWORD}\n" > ~/.netrc diff --git a/ci/travis.sh b/ci/travis.sh index ad221e1..7c5f799 100644 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -evx +chmod +x ci/get-nprocessors.sh . ci/get-nprocessors.sh # if possible, ask for the precise number of processors, @@ -11,6 +12,7 @@ if [ -x /usr/bin/getconf ]; then else NPROCESSORS=2 fi + # as of 2017-09-04 Travis CI reports 32 processors, but GCC build # crashes if parallelized too much (maybe memory consumption problem), # so limit to 4 processors for the time being. @@ -35,7 +37,7 @@ yum install -y mrzcpd framework numactl-devel zlib-devel librdkafka-devel system mkdir build || true cd build -cmake -DCMAKE_CXX_FLAGS=$CXX_FLAGS \ +cmake3 -DCMAKE_CXX_FLAGS=$CXX_FLAGS \ -DCMAKE_BUILD_TYPE=$BUILD_TYPE \ -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \ -DTFE_VERSION_DAILY_BUILD=$TESTING_VERSION_BUILD \ @@ -46,8 +48,8 @@ make test if [ -n "${PACKAGE}" ]; then make package - pulp-admin rpm repo uploads rpm --repo-id ${UPLOAD_TO_REPO_ID} -d ./ - pulp-admin rpm repo publish run --repo-id ${UPLOAD_TO_REPO_ID} + cp ~/rpm_upload_tools.py ./ + python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm fi if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then |
