Mining software...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

127 lines
3.0 KiB

  1. dist: trusty
  2. osx_image: xcode8.3
  3. sudo: false
  4. language: cpp
  5. cache:
  6. apt: true
  7. directories:
  8. - $HOME/.cache/cuda
  9. addons:
  10. apt:
  11. packages: &default_packages
  12. - cmake
  13. - libmicrohttpd-dev
  14. - libssl-dev
  15. - libhwloc-dev
  16. env:
  17. global:
  18. - CUDA_ROOT: $HOME/.cache/cuda
  19. matrix:
  20. include:
  21. - os: linux
  22. compiler: gcc
  23. addons:
  24. apt:
  25. sources:
  26. - ubuntu-toolchain-r-test
  27. packages:
  28. - *default_packages
  29. - gcc-5
  30. - g++-5
  31. env:
  32. - CMAKE_CXX_COMPILER=g++-5
  33. - CMAKE_C_COMPILER=gcc-5
  34. - XMRSTAK_CMAKE_FLAGS="-DCUDA_ARCH=30 -DOpenCL_ENABLE=OFF"
  35. - os: linux
  36. compiler: gcc
  37. addons:
  38. apt:
  39. sources:
  40. - ubuntu-toolchain-r-test
  41. packages:
  42. - *default_packages
  43. - gcc-6
  44. - g++-6
  45. env:
  46. - CMAKE_CXX_COMPILER=g++-6
  47. - CMAKE_C_COMPILER=gcc-6
  48. - XMRSTAK_CMAKE_FLAGS="-DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF"
  49. # test with disabled HWLOC, MICROHTTPD, OpenSSL and no accelerators
  50. - os: linux
  51. compiler: gcc
  52. addons:
  53. apt:
  54. sources:
  55. - ubuntu-toolchain-r-test
  56. packages:
  57. - *default_packages
  58. - gcc-6
  59. - g++-6
  60. env:
  61. - CMAKE_CXX_COMPILER=g++-6
  62. - CMAKE_C_COMPILER=gcc-6
  63. - XMRSTAK_CMAKE_FLAGS="-DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF -DHWLOC_ENABLE=OFF -DOpenSSL_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF"
  64. - os: linux
  65. compiler: gcc
  66. addons:
  67. apt:
  68. sources:
  69. - ubuntu-toolchain-r-test
  70. packages:
  71. - *default_packages
  72. - gcc-7
  73. - g++-7
  74. env:
  75. - CMAKE_CXX_COMPILER=g++-7
  76. - CMAKE_C_COMPILER=gcc-7
  77. - XMRSTAK_CMAKE_FLAGS="-DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF"
  78. - os: osx
  79. compiler: gcc
  80. env:
  81. - XMRSTAK_CMAKE_FLAGS="-DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF"
  82. before_install:
  83. - . CI/checkPRBranch
  84. - if [ $TRAVIS_OS_NAME = osx ] ; then
  85. brew update;
  86. fi
  87. - export PATH=$CUDA_ROOT/bin:$PATH
  88. install:
  89. # CUDA
  90. - if [ $TRAVIS_OS_NAME != osx ]; then
  91. NVCC_FOUND=$(which nvcc >/dev/null && { echo 0; } || { echo 1; });
  92. if [ $NVCC_FOUND -ne 0 ]; then
  93. mkdir -p $CUDA_ROOT &&
  94. cd $CUDA_ROOT &&
  95. travis_retry wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_linux-run &&
  96. ls -la &&
  97. chmod u+x *-run &&
  98. ./cuda_8.0.44_linux-run --silent --toolkit --toolkitpath=$CUDA_ROOT &&
  99. rm -rf ./cuda_8.0.44_linux-run $CUDA_ROOT/{samples,jre,doc,share} &&
  100. cd -;
  101. fi
  102. fi;
  103. script:
  104. - if [ $TRAVIS_OS_NAME = osx ]; then
  105. brew install hwloc;
  106. cmake -DMICROHTTPD_ENABLE=OFF -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl ${XMRSTAK_CMAKE_FLAGS} .;
  107. else
  108. cmake -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} ${XMRSTAK_CMAKE_FLAGS} .;
  109. fi;
  110. - make VERBOSE=1 install
  111. - ./bin/xmr-stak --help