Browse Source

Experiment with travis to get number of cores.

pass-iguana-arg
Artem Pikulin 7 years ago
parent
commit
6b94fcb824
  1. 11
      .travis.yml

11
.travis.yml

@ -10,17 +10,8 @@ matrix:
env: OS_NAME=Darwin
osx_image: xcode9.2
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt-get update && sudo apt-get install -y g++-7; fi
- git submodule update --init --recursive
script:
- export VERSION=`echo "$(git tag -l --points-at HEAD)"`
- mkdir build && cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake -DMM_VERSION="$VERSION" -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7 ..; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake -DMM_VERSION="$VERSION" ..; fi
- cmake --build . --target marketmaker-mainnet
- cmake --build . --target marketmaker-testnet
- nproc --all
cache:
apt: true

Loading…
Cancel
Save