Fix travis test script

This commit is contained in:
Hui, Chunyang 2020-06-05 02:44:52 +00:00 committed by Tate Tian
parent 37ca75da47
commit f4d9a7f4e1

@ -5,8 +5,7 @@ sudo: true
services: services:
- docker - docker
before_script:
- cd /home/travis/build/occlum/occlum; info=$(make format-check); if [ -n "$info" ]; then echo "Format error detected."; exit 1; fi
script: script:
- docker run -v /home/travis/build/occlum/occlum:/root/occlum occlum/occlum:0.12.2-ubuntu18.04 /bin/bash -c "cd /root/occlum; make submodule; SGX_MODE=SIM make; SGX_MODE=SIM make test" - docker run -v /home/travis/build/occlum/occlum:/root/occlum occlum/occlum:0.12.2-ubuntu18.04 /bin/bash -c 'cd /root/occlum;
info=$(make format-check); if [ -n "$info" ]; then echo "Format error detected."; exit 1; fi;
make submodule; SGX_MODE=SIM make; SGX_MODE=SIM make test'