summaryrefslogtreecommitdiffhomepage
path: root/ogg/.travis.yml
blob: 43a3b1a62543e20d6c48f3df4e8d819ddab520fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
language: c
dist: trusty

env:
  - BUILD=AUTOTOOLS
  - BUILD=CMAKE

script:
  - 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
  - if [[ "$BUILD" == "CMAKE" ]] ; then cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/_inst .. ; fi
  - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . ; fi
  - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . --target install ; fi
  - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi