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.

47 lines
763 B

3 months ago
  1. #!/usr/bin/env bash
  2. pushd .
  3. mkdir -p cache/
  4. pushd cache/
  5. if [ ! -d cache/carl ]; then
  6. if [ ${TRAVIS_BRANCH} == "master14" ]; then
  7. git clone https://github.com/smtrat/carl.git --branch master14
  8. else
  9. git clone https://github.com/smtrat/carl.git
  10. fi
  11. else
  12. pushd carl/
  13. git fetch
  14. git reset --hard origin/master
  15. popd
  16. fi
  17. mkdir -p carl/build
  18. pushd carl/build/
  19. cmake -D DEVELOPER=ON -D BUILD_ADDONS=OFF ../ || return 1
  20. if [ ${TRAVIS_BRANCH} == "master14" ]; then
  21. make lib_carl || return 1
  22. else
  23. make carl || return 1
  24. fi
  25. popd
  26. popd
  27. mkdir -p build
  28. cd build/
  29. cmake ../ || return 1
  30. make || return 1
  31. # Build a second time to avoid problems in macOS
  32. cmake ../ || return 1
  33. make || return 1
  34. ./test/carl-parser-test || return 1
  35. popd