Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit de53795

Browse files
committed
move scripts to file to work around ppc64le problem with multiline cmds
1 parent 35c1421 commit de53795

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

.travis.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,13 @@ before_install:
124124
fi
125125
# Set DEBUG_PRINT environment variable in settings
126126
- if [ -n "${DEBUG_PRINT}" ]; then set -x; fi
127-
- source multibuild/common_utils.sh
128-
- source multibuild/travis_steps.sh
129-
- before_install
127+
- ./travis_before_install.sh
130128

131129
install:
132-
# Maybe get and clean and patch source
133-
- clean_code $REPO_DIR $BUILD_COMMIT
134-
- ./patch_code.sh $REPO_DIR
135-
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
136-
export CFLAGS=${CFLAGS}" -Wno-sign-compare -Wno-unused-result\
137-
-Wno-strict-aliasing";
138-
fi
139-
- build_wheel $REPO_DIR $PLAT
130+
- ./travis_install.sh
140131

141132
script:
142-
- install_run $PLAT
133+
- ./travis_script.sh
143134

144135
after_success:
145136
# Upload wheels to Rackspace container

travis_before_install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
source multibuild/common_utils.sh
4+
source multibuild/travis_steps.sh
5+
before_install
6+

travis_install.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
source multibuild/common_utils.sh
4+
source multibuild/travis_steps.sh
5+
# Maybe get and clean and patch source
6+
clean_code $REPO_DIR $BUILD_COMMIT
7+
./patch_code.sh $REPO_DIR
8+
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
9+
export CFLAGS=${CFLAGS}" -Wno-sign-compare -Wno-unused-result\
10+
-Wno-strict-aliasing";
11+
fi
12+
build_wheel $REPO_DIR $PLAT

travis_script.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
source multibuild/common_utils.sh
4+
source multibuild/travis_steps.sh
5+
install_run $PLAT

0 commit comments

Comments
 (0)