Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
8d1ffcb2
Commit
8d1ffcb2
authored
Mar 24, 2020
by
Simon Spannagel
Browse files
CI: source right script for macOS
parent
74e75600
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.d/init_mac.sh
deleted
100644 → 0
View file @
74e75600
#!/bin/bash
if
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
if
[
$(
sw_vers
-productVersion
|
awk
-F
'.'
'{print $1 "." $2}'
)
==
"10.14"
]
;
then
OS
=
mac1014
COMPILER_TYPE
=
clang
COMPILER_VERSION
=
clang100
else
echo
"Bootstrap only works on macOS Mojave (10.14)"
exit
1
fi
else
echo
"This script is only meant for Mac"
exit
1
fi
# Determine is you have CVMFS installed
if
[
!
-d
"/cvmfs"
]
;
then
echo
"No CVMFS detected, please install it."
exit
1
fi
if
[
!
-d
"/cvmfs/clicdp.cern.ch"
]
;
then
echo
"No clicdp CVMFS repository detected, please add it."
exit
1
fi
# Choose build type
if
[
-z
${
BUILD_TYPE
}
]
;
then
BUILD_TYPE
=
opt
fi
# General variables
CLICREPO
=
/cvmfs/clicdp.cern.ch
BUILD_FLAVOUR
=
x86_64-
${
OS
}
-
${
COMPILER_VERSION
}
-
${
BUILD_TYPE
}
#--------------------------------------------------------------------------------
# CMake
#--------------------------------------------------------------------------------
export
CMAKE_HOME
=
${
CLICREPO
}
/software/CMake/3.14.3/
${
BUILD_FLAVOUR
}
export
PATH
=
${
CMAKE_HOME
}
/bin:
$PATH
#--------------------------------------------------------------------------------
# ROOT
#--------------------------------------------------------------------------------
export
ROOTSYS
=
${
CLICREPO
}
/software/ROOT/6.18.00/
${
BUILD_FLAVOUR
}
export
PYTHONPATH
=
"
$ROOTSYS
/lib:
$PYTHONPATH
"
export
PATH
=
"
$ROOTSYS
/bin:
$PATH
"
export
DYLD_LIBRARY_PATH
=
"
$ROOTSYS
/lib:
$DYLD_LIBRARY_PATH
"
#--------------------------------------------------------------------------------
# Ninja
#--------------------------------------------------------------------------------
export
Ninja_HOME
=
${
CLICREPO
}
/software/Ninja/1.9.0/
${
BUILD_FLAVOUR
}
export
PATH
=
"
$Ninja_HOME
:
$PATH
"
#--------------------------------------------------------------------------------
# Eigen
#--------------------------------------------------------------------------------
export
Eigen_HOME
=
${
CLICREPO
}
/software/Eigen/3.3.7/
${
BUILD_FLAVOUR
}
export
Eigen3_DIR
=
${
Eigen_HOME
}
/share/eigen3/cmake/
.gitlab-ci.yml
View file @
8d1ffcb2
...
...
@@ -103,7 +103,7 @@ cmp:mac1014-clang:
tags
:
-
mac
script
:
-
source .gitlab-ci.d/init_
mac
.sh
-
source .gitlab-ci.d/init_
x86_64
.sh
-
source .gitlab-ci.d/load_deps.sh
-
mkdir build
-
cd build
...
...
Simon Spannagel
@simonspa
mentioned in commit
f331e91b
·
Jun 18, 2020
mentioned in commit
f331e91b
mentioned in commit f331e91be159e7347ddbd70c894c052724bb330c
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment