Skip to content

Commit

Permalink
do not use cd, use the relative path to the file
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Jul 29, 2021
1 parent 49c4c61 commit 86cfde4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,25 +134,21 @@ script:
linux)
if [[ "$PLATFORM" == "linux32" ]]; then ./.build.sh CFLAGS="-O3 -msse2 -m32 -fPIC"; fi
if [[ "$PLATFORM" == "linux64" ]]; then ./.build.sh CFLAGS="-O3 -fPIC"; fi
cd ExternData/Resources/Library/$PLATFORM
if [[ "$CC" == "gcc-4.8" ]]; then sh ../../../../upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ExternData_$PLATFORM.tar.xz; fi
if [[ "$CC" == "gcc-4.8" ]]; then sh ./upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ./ExternData/Resources/Library/$PLATFORM/ExternData_$PLATFORM.tar.xz; fi
;;
osx)
./.build.sh CFLAGS="-O3"
cd ExternData/Resources/Library/$PLATFORM
../../../../upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ExternData_$PLATFORM.tar.xz
./upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ./ExternData/Resources/Library/$PLATFORM/ExternData_$PLATFORM.tar.xz
;;
windows)
case $PLATFORM in
mingw64)
$mingw64 ./.build.sh CFLAGS="-O3"
$mingw64 cd ExternData/Resources/Library/$PLATFORM
$mingw64 ../../../../upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ExternData_$PLATFORM.tar.xz
$mingw64 ./upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ./ExternData/Resources/Library/$PLATFORM/ExternData_$PLATFORM.tar.xz
;;
mingw32)
$mingw32 ./.build.sh CFLAGS="-O3"
$mingw32 cd ExternData/Resources/Library/$PLATFORM
$mingw32 ../../../../upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ExternData_$PLATFORM.tar.xz
$mingw32 ./upload-to-bitbucket.sh tbeu $BBPASS /tbeu/downloads/downloads ./ExternData/Resources/Library/$PLATFORM/ExternData_$PLATFORM.tar.xz
;;
esac
;;
Expand Down

0 comments on commit 86cfde4

Please sign in to comment.