Created
March 13, 2016 12:55
-
-
Save sachin-handiekar/91dab7f103062d009a18 to your computer and use it in GitHub Desktop.
C++ Sample travis.yml file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo: required | |
before_install: | |
- sudo apt-get install libao-dev | |
- sudo apt-get install libcurl4-openssl-dev | |
- chmod +x installMPG123.sh | |
- ./installMPG123.sh | |
# Enable C++ support | |
language: cpp | |
# Compiler selection | |
compiler: | |
- gcc | |
install: | |
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps" | |
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR} | |
- | | |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | |
CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz" | |
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake | |
export PATH=${DEPS_DIR}/cmake/bin:${PATH} | |
fi | |
# Go to the Root directory | |
- cd .. | |
# Build steps | |
script: | |
- mkdir build | |
- cd build | |
- ${DEPS_DIR}/cmake/bin/cmake .. && make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment