• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1language: c
2
3os:
4  - linux
5  - osx
6
7compiler:
8  - gcc
9  - clang
10
11env:
12  - BUILD=AUTOTOOLS
13  - BUILD=CMAKE
14
15script:
16  - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./autogen.sh ; fi
17  - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./configure ; fi
18  - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then make distcheck ; fi
19  - if [[ "$BUILD" == "CMAKE" ]] ; then mkdir build ; fi
20  - if [[ "$BUILD" == "CMAKE" ]] ; then pushd build ; fi
21  - if [[ "$BUILD" == "CMAKE" ]] ; then cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCPACK_PACKAGE_CONTACT="Xiph.Org Foundation" .. ; fi
22  - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . ; fi
23  - if [[ "$BUILD" == "CMAKE" ]] ; then ctest ; fi
24  - if [[ "$BUILD" == "CMAKE" && "$TRAVIS_OS_NAME" == "linux" ]] ; then cpack -G DEB ; fi
25  - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi
26