De-duplicate macro _CRT_SECURE_NO_WARNINGS / _CRT_SECURE_NO_DEPRECATE (#136)
* De-duplicate macro _CRT_SECURE_NO_WARNINGS / _CRT_SECURE_NO_DEPRECATE * Move all macros to base.h * Fix CI
This commit is contained in:
committed by
GitHub
parent
8fe7f5dc43
commit
74bf00a5ab
@@ -5,9 +5,3 @@ set -x
|
||||
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Prevent clash between Python 2 and 3
|
||||
brew unlink python@2
|
||||
brew link --overwrite python
|
||||
|
||||
python3 -m pip install --upgrade pip
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
conda activate python3
|
||||
conda --version
|
||||
python --version
|
||||
|
||||
make -f test.mk RABIT_BUILD_DMLC=1 model_recover_10_10k || exit -1
|
||||
make -f test.mk RABIT_BUILD_DMLC=1 model_recover_10_10k_die_same || exit -1
|
||||
make -f test.mk RABIT_BUILD_DMLC=1 model_recover_10_10k_die_hard || exit -1
|
||||
|
||||
@@ -2,9 +2,24 @@
|
||||
|
||||
echo "Testing on: ${TRAVIS_OS_NAME}, Home directory: ${HOME}"
|
||||
|
||||
pip3 install cpplint pylint urllib3 numpy cpplint
|
||||
pip3 install websocket-client kubernetes
|
||||
|
||||
# Install Miniconda
|
||||
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
||||
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
|
||||
else
|
||||
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||
fi
|
||||
bash conda.sh -b -p $HOME/miniconda
|
||||
source $HOME/miniconda/bin/activate
|
||||
conda config --set always_yes yes --set changeps1 no
|
||||
conda update -q conda
|
||||
conda info -a
|
||||
conda create -n python3 python=3.7
|
||||
conda activate python3
|
||||
conda --version
|
||||
python --version
|
||||
# Install Python packages
|
||||
conda install -c conda-forge numpy scipy urllib3 websocket-client
|
||||
python -m pip install cpplint pylint kubernetes
|
||||
|
||||
# Install googletest under home directory
|
||||
GTEST_VERSION=1.8.1
|
||||
@@ -27,7 +42,7 @@ make install
|
||||
popd
|
||||
|
||||
if [ ${TRAVIS_OS_NAME} == "linux" ]; then
|
||||
sudo apt-get install python3-pip tree
|
||||
sudo apt-get install tree
|
||||
fi
|
||||
|
||||
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
||||
|
||||
Reference in New Issue
Block a user