travis: Fix building samples.

This commit is contained in:
James Benton 2018-06-15 09:06:37 +01:00
parent eb0d4e7581
commit a222d98678

View File

@ -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