Skip to content

Commit 4049499

Browse files
wangnuannuanfanghuaqi
authored andcommitted
travis: update travis for build
Signed-off-by: Jingru Wang <jingru@synopsys.com>
1 parent f7fe835 commit 4049499

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.travis/script.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
embARC_OSP_REPO="https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp.git"
2-
31
die() {
42
echo " *** ERROR: " $*
53
exit 1
@@ -11,12 +9,13 @@ set -x
119

1210
export PATH=/tmp/arc_gnu_2017.09_prebuilt_elf32_le_linux_install/bin:$PATH || die
1311
git checkout -- . || die
14-
cd ../ || die
15-
tar -czvf application.tar.gz embarc_applications || die
16-
cd embarc_applications || die
12+
git archive --format zip -o applications.zip --prefix embarc_applications/ HEAD || die
13+
[ $embARC_OSP_REPO ] || {
14+
embARC_OSP_REPO="https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp.git"
15+
}
1716
git clone ${embARC_OSP_REPO} embarc_osp
1817
cd embarc_osp || die
19-
tar -zxvf ../../application.tar.gz || die
18+
unzip ../applications.zip || die
2019
bash apply_embARC_patch.sh || die
2120
cd ../ || die
2221
cd .travis || die

0 commit comments

Comments
 (0)