[Mod] use CC and CXX (specific in MATRIX_EVAL)

This commit is contained in:
nanoric 2019-04-15 08:59:57 -04:00
parent 98c677118a
commit bb73601705

View File

@ -10,6 +10,9 @@ services:
- mysql - mysql
- postgresql - postgresql
before_install:
- eval "${MATRIX_EVAL}"
before_script: before_script:
- psql -d postgresql://postgres:${VNPY_TEST_POSTGRESQL_PASSWORD}@localhost -c "create database vnpy;" - psql -d postgresql://postgres:${VNPY_TEST_POSTGRESQL_PASSWORD}@localhost -c "create database vnpy;"
- mysql -u root --password=${VNPY_TEST_MYSQL_PASSWORD} -e 'CREATE DATABASE vnpy;' - mysql -u root --password=${VNPY_TEST_MYSQL_PASSWORD} -e 'CREATE DATABASE vnpy;'
@ -38,10 +41,6 @@ matrix:
- g++-8 - g++-8
env: env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-8 90
install: install:
# update pip & setuptools # update pip & setuptools
- python -m pip install --upgrade pip wheel setuptools - python -m pip install --upgrade pip wheel setuptools
@ -58,10 +57,6 @@ matrix:
- g++-7 - g++-7
env: env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-7 90
- sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-7 90
install: install:
# Linux install script # Linux install script
- python -m pip install --upgrade pip wheel setuptools - python -m pip install --upgrade pip wheel setuptools