File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
if [[ $TRAVIS_OS_NAME == ' linux' ]]; then
6
6
echo " start docker build..."
7
- DIR=` pwd` ; sudo docker run -it -v ${DIR} :/home/ci fibjs/build-env:latest /bin/sh -c " cd /home/ci; sh build -j2 ${ARCH} "
7
+ DIR=` pwd` ; sudo docker run -it -v ${DIR} :/home/ci fibjs/build-env:latest /bin/sh -c " cd /home/ci; sh build -j2 ${ARCH} ci "
8
8
else
9
9
sh build -j2 ${ARCH}
10
10
fi
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ usage()
11
11
echo " Specifies the architecture for code generation."
12
12
echo " clean: "
13
13
echo " Clean the build folder."
14
+ echo " ci: "
15
+ echo " Specifies the environment is CI."
14
16
echo " -h, --help:"
15
17
echo " Print this message and exit."
16
18
echo " -j: enable make '-j' option."
55
57
;;
56
58
release|debug|clean) BUILD_TYPE=$i
57
59
;;
60
+ ci) CI=" ci"
61
+ ;;
58
62
-j* ) ENABLE_JOBS=1; BUILD_JOBS=" ${i# -j} "
59
63
;;
60
64
-v) BUILD_VERBOSE=' VERBOSE=1'
184
188
fi
185
189
186
190
cd fibjs
187
- sh build $BUILD_TYPE $TARGET_ARCH
191
+ sh build $BUILD_TYPE $TARGET_ARCH $CI
188
192
if [ $? != 0 ]; then
189
193
exit 1
190
194
fi
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ usage()
11
11
echo " Specifies the architecture for code generation."
12
12
echo " clean: "
13
13
echo " Clean the build folder."
14
+ echo " ci: "
15
+ echo " Specifies the environment is CI."
14
16
echo " -h, --help:"
15
17
echo " Print this message and exit."
16
18
echo " "
52
54
;;
53
55
release|debug|clean) BUILD_TYPE=$i
54
56
;;
57
+ ci) CI=" ci"
58
+ ;;
55
59
--help|-h) usage
56
60
;;
57
61
* ) echo " illegal option $i "
@@ -181,7 +185,7 @@ if [ "${BUILD_TYPE}" = "release" ]; then
181
185
echo ' [100%] Built target install.sh'
182
186
chmod 777 installer.sh
183
187
mv js fibjs
184
- if [ " ${CI} " = " true " ]; then
188
+ if [ " ${CI} " = " ci " ]; then
185
189
xz -cz -T2 fibjs > fibjs.xz
186
190
echo ' [100%] Built target fibjs.xz'
187
191
fi
You can’t perform that action at this time.
0 commit comments