Skip to content

handle travis cron jobs like github ones [skip actions] #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,23 @@ before_install:

install:
# Maybe get and clean and patch source
- clean_code $REPO_DIR $OPENBLAS_COMMIT
- |
if [ ${TRAVIS_EVENT_TYPE} == "cron" ]; then
clean_code $REPO_DIR develop
else
clean_code $REPO_DIR $OPENBLAS_COMMIT
fi

script:
# Build library and collect into libs subdirectory
- build_lib "$PLAT" "$INTERFACE64"
- |
if [ ${TRAVIS_EVENT_TYPE} == "cron" ]; then
build_lib "$PLAT" "$INTERFACE64" 1
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
else
build_lib "$PLAT" "$INTERFACE64" 0
fi
- libc=${MB_ML_LIBC:-manylinux}
- docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
- docker run --rm -e INTERFACE64="${INTERFACE64}" \
Expand Down