Skip to content

Commit cfe960d

Browse files
authored
Merge pull request #162 from mattip/travis-cron
handle travis cron jobs like github ones [skip actions]
2 parents 359a3da + 0cff720 commit cfe960d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,23 @@ before_install:
7373

7474
install:
7575
# Maybe get and clean and patch source
76-
- clean_code $REPO_DIR $OPENBLAS_COMMIT
76+
- |
77+
if [ ${TRAVIS_EVENT_TYPE} == "cron" ]; then
78+
clean_code $REPO_DIR develop
79+
else
80+
clean_code $REPO_DIR $OPENBLAS_COMMIT
81+
fi
7782
7883
script:
7984
# Build library and collect into libs subdirectory
80-
- build_lib "$PLAT" "$INTERFACE64"
85+
- |
86+
if [ ${TRAVIS_EVENT_TYPE} == "cron" ]; then
87+
build_lib "$PLAT" "$INTERFACE64" 1
88+
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
89+
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
90+
else
91+
build_lib "$PLAT" "$INTERFACE64" 0
92+
fi
8193
- libc=${MB_ML_LIBC:-manylinux}
8294
- docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
8395
- docker run --rm -e INTERFACE64="${INTERFACE64}" \

0 commit comments

Comments
 (0)