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