From a222d986788eefaeceac781d7136626178ce2fa0 Mon Sep 17 00:00:00 2001 From: James Benton Date: Fri, 15 Jun 2018 09:06:37 +0100 Subject: [PATCH] travis: Fix building samples. --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6566768..56aeef4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,17 +40,21 @@ install: script: - cd "$TRAVIS_BUILD_DIR" + # Build wut - mkdir build && cd build - cmake -DCMAKE_INSTALL_PREFIX=wut_install ../ - make -j4 install - export WUT_ROOT=$PWD/wut_install - cd ../ - - cd samples/helloworld + # Build samples + - cd samples - mkdir build && cd build - chmod +x $WUT_ROOT/bin/elf2rpl - cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT/samples ../ - make -j4 VERBOSE=TRUE install - - cd wut_install + - cd ../../ + # Create deploy zips + - cd $WUT_ROOT - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 7z a ~/wut.linux64.zip .; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 7z a ~/wut.macos.zip .; fi