install.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. # Create deps dir
  3. mkdir ${DEPS_DIR}
  4. cd ${DEPS_DIR}
  5. # Install lcov and valgrind on linux
  6. if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
  7. sudo apt-get update -y
  8. sudo apt-get install -y lcov
  9. sudo apt-get install -y valgrind
  10. else if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
  11. brew update
  12. brew install lcov
  13. fi
  14. fi
  15. # Install Anaconda
  16. # Use the miniconda installer for faster download / install of conda
  17. # itself
  18. if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
  19. wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
  20. else
  21. wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
  22. fi
  23. export CONDA_ROOT=${DEPS_DIR}/miniconda
  24. chmod +x miniconda.sh && ./miniconda.sh -b -p $CONDA_ROOT
  25. export PATH=${DEPS_DIR}/miniconda/bin:$PATH
  26. hash -r
  27. conda config --set always_yes yes --set changeps1 no
  28. conda update --yes -q conda
  29. conda create -n testenv --yes python=$PYTHON_VERSION mkl numpy scipy future
  30. source activate testenv
  31. # Install cmake
  32. conda install --yes -c conda-forge cmake
  33. # Install coveralls lcov
  34. gem install coveralls-lcov
  35. cd ${TRAVIS_BUILD_DIR}