.travis.yml 763 Bytes
Newer Older
1
language: c
2
dist: trusty
3 4 5 6 7

env:
  - BUILD=AUTOTOOLS
  - BUILD=CMAKE

8
script:
9 10 11 12 13
  - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./autogen.sh ; fi
  - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./configure ; fi
  - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then make distcheck ; fi
  - if [[ "$BUILD" == "CMAKE" ]] ; then mkdir build ; fi
  - if [[ "$BUILD" == "CMAKE" ]] ; then pushd build ; fi
14
  - if [[ "$BUILD" == "CMAKE" ]] ; then cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCPACK_PACKAGE_CONTACT="Xiph.Org Foundation" .. ; fi
15
  - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . ; fi
16 17
  - if [[ "$BUILD" == "CMAKE" ]] ; then ctest ; fi
  - if [[ "$BUILD" == "CMAKE" ]] ; then cpack -G DEB ; fi
18
  - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi