Commit abbbbd75 authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

[ci] CI fixes (#2161)

* Update setup.sh

* Update test.sh

* Update setup.sh

* test: gcc on Azure

* Update test.sh

* Update setup.sh

* Update test.sh

* switch compiler back on Azure
parent 5d6513ef
...@@ -11,6 +11,9 @@ if [[ $OS_NAME == "macos" ]]; then ...@@ -11,6 +11,9 @@ if [[ $OS_NAME == "macos" ]]; then
# rm '/usr/local/include/c++' # previous variant to deal with conflict link # rm '/usr/local/include/c++' # previous variant to deal with conflict link
# brew cask uninstall oclint # reserve variant to deal with conflict link # brew cask uninstall oclint # reserve variant to deal with conflict link
brew link --overwrite gcc brew link --overwrite gcc
brew upgrade gcc
else
brew update
fi fi
if [[ $TASK != "mpi" ]]; then if [[ $TASK != "mpi" ]]; then
brew install gcc brew install gcc
......
#!/bin/bash #!/bin/bash
if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "gcc" ]]; then if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "gcc" ]]; then
export CXX=g++-8 export CXX=g++-9
export CC=gcc-8 export CC=gcc-9
elif [[ $OS_NAME == "linux" ]] && [[ $COMPILER == "clang" ]]; then elif [[ $OS_NAME == "linux" ]] && [[ $COMPILER == "clang" ]]; then
export CXX=clang++ export CXX=clang++
export CC=clang export CC=clang
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment