Skip to content

Commit

Permalink
[ci] CI fixes (#2161)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
StrikerRUS authored and guolinke committed May 9, 2019
1 parent 5d6513e commit abbbbd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .ci/setup.sh
Expand Up @@ -11,6 +11,9 @@ if [[ $OS_NAME == "macos" ]]; then
# rm '/usr/local/include/c++' # previous variant to deal with conflict link
# brew cask uninstall oclint # reserve variant to deal with conflict link
brew link --overwrite gcc
brew upgrade gcc
else
brew update
fi
if [[ $TASK != "mpi" ]]; then
brew install gcc
Expand Down
4 changes: 2 additions & 2 deletions .ci/test.sh
@@ -1,8 +1,8 @@
#!/bin/bash

if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "gcc" ]]; then
export CXX=g++-8
export CC=gcc-8
export CXX=g++-9
export CC=gcc-9
elif [[ $OS_NAME == "linux" ]] && [[ $COMPILER == "clang" ]]; then
export CXX=clang++
export CC=clang
Expand Down

0 comments on commit abbbbd7

Please sign in to comment.