travis: Fixups for new build system

This commit is contained in:
Ash Logan 2019-04-09 19:17:52 +10:00
parent 37afdf9095
commit aa122e0366

View File

@ -5,15 +5,13 @@ matrix:
- os: linux
dist: xenial
sudo: required
env: DEPLOY_FILE=wut.7z
env: DEPLOY_FILE=wut-*.tar.bz2
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:cginternals/backports-ppa'
packages:
- p7zip-full
cache:
directories:
@ -33,26 +31,20 @@ install:
script:
- cd "$TRAVIS_BUILD_DIR"
# Build wut
- mkdir build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=wut_install ../
- make -j4 install
- make -j4 install DESTDIR=wut_install
- export WUT_ROOT=$PWD/wut_install
- cd ../
# Build tests
- cd tests
- mkdir build && cd build
- cmake ../
- make -j4 VERBOSE=TRUE
- cd ../../
- echo Tests disabled for now
# - cd tests
# - mkdir build && cd build
# - cmake ../
# - make -j4 VERBOSE=TRUE
# - cd ../../
# Build samples
- cd samples
- mkdir build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT/samples ../
- make -j4 VERBOSE=TRUE install
- cd samples/make
- make -j4
- cd ../../
# Create deploy zips
- cd $WUT_ROOT
- 7z a $DEPLOY_FILE .
deploy:
provider: releases