Skip to content
Permalink
Browse files

ci, feat: disable prof in ci.

  • Loading branch information...
xicilion committed Apr 30, 2019
1 parent 8a8d2e6 commit 02ddbdf57fefca9c26d8ce53de48a2bcaa040197
Showing with 7 additions and 7 deletions.
  1. +7 −7 .travis/test.sh
@@ -5,29 +5,29 @@ set -ev
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
if [[ $ARCH == "amd64" ]]; then
# Test on ubuntu:18.04
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci ubuntu:18.04 /bin/sh -c "cd /home/ci; ./bin/Linux_amd64_release/fibjs --prof test/main.js"
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci ubuntu:18.04 /bin/sh -c "cd /home/ci; ./bin/Linux_amd64_release/fibjs test/main.js"

# Test on ubuntu:16.04
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci ubuntu:16.04 /bin/sh -c "cd /home/ci; ./bin/Linux_amd64_release/fibjs --prof test/main.js"
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci ubuntu:16.04 /bin/sh -c "cd /home/ci; ./bin/Linux_amd64_release/fibjs test/main.js"

# Test on ubuntu:14.04
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci ubuntu:14.04 /bin/sh -c "cd /home/ci; ./bin/Linux_amd64_release/fibjs --prof test/main.js"
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci ubuntu:14.04 /bin/sh -c "cd /home/ci; ./bin/Linux_amd64_release/fibjs test/main.js"
fi

if [[ $ARCH == "arm" ]]; then
# Test on arm using qemu
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci fibjs/build-env:clang /bin/sh -c "cd /home/ci; qemu-arm ./bin/Linux_arm_release/fibjs --prof test/main.js"
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci fibjs/build-env:clang /bin/sh -c "cd /home/ci; qemu-arm ./bin/Linux_arm_release/fibjs test/main.js"
fi

if [[ $ARCH == "arm64" ]]; then
# Test on arm64 using qemu
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci fibjs/build-env:clang /bin/sh -c "cd /home/ci; qemu-aarch64 ./bin/Linux_arm64_release/fibjs --prof test/main.js"
DIR=`pwd`;sudo docker run -it -v ${DIR}:/home/ci fibjs/build-env:clang /bin/sh -c "cd /home/ci; qemu-aarch64 ./bin/Linux_arm64_release/fibjs test/main.js"
fi
else # darwin
if [[ $ARCH == "amd64" ]]; then
./bin/Darwin_amd64_release/fibjs --prof test
./bin/Darwin_amd64_release/fibjs test
else
./bin/Darwin_i386_release/fibjs --prof test
./bin/Darwin_i386_release/fibjs test
fi
fi

0 comments on commit 02ddbdf

Please sign in to comment.
You can’t perform that action at this time.