Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
5dd91b6a
Commit
5dd91b6a
authored
Aug 07, 2018
by
Remi Perenon
Browse files
Cleaning scripts
parent
b682942d
Pipeline
#4338
passed with stages
in 16 minutes and 24 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
BuildServer/Unix/Debian/definitions.sh
View file @
5dd91b6a
...
...
@@ -6,3 +6,7 @@ export PYTHONEXE=/usr/bin/python
export
SED_I_COMMAND
=(
sed
-i
)
# Define colors
export
RED
=
"
\\
033[1;31m"
export
BLUE
=
"
\\
033[1;34m"
export
NORMAL
=
"
\\
033[0m"
BuildServer/Unix/Debian/deploy.sh
View file @
5dd91b6a
...
...
@@ -9,7 +9,6 @@ export DISTUTILS_DEBUG=0
#############################
# PREPARATION
#############################
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
DEBIAN_ROOT_DIR
=
${
CI_TEMP_DIR
}
/dist
...
...
@@ -75,4 +74,3 @@ if [ $status -ne 0 ]; then
echo
-e
"
${
RED
}
"
"Cannot build app.""
${
NORMAL
}
"
exit
$status
fi
BuildServer/Unix/MacOS/change_dylib_path.sh
View file @
5dd91b6a
...
...
@@ -12,4 +12,3 @@ do
install_name_tool
-change
/usr/local/lib/libwx_
$l
-3
.0.dylib @executable_path/../Frameworks/libwx_
$l
-3
.0.dylib
$f
done
done
BuildServer/Unix/MacOS/definitions.sh
View file @
5dd91b6a
...
...
@@ -7,3 +7,7 @@ export PYTHONEXE=/usr/bin/python
# The sed -i"" is compulsory other crashes on macos
export
SED_I_COMMAND
=(
sed
-i
""
)
# Define colors
export
RED
=
"
\\
033[1;31m"
export
BLUE
=
"
\\
033[1;34m"
export
NORMAL
=
"
\\
033[0m"
BuildServer/Unix/build.sh
View file @
5dd91b6a
...
...
@@ -52,7 +52,6 @@ ${PYTHONEXE} setup.py install --prefix=${CI_TEMP_INSTALL_DIR}
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
${
RED
}
"
"Failed to build MDANSE""
${
NORMAL
}
"
echo
-e
"
${
RED
}
"
"Failed to build
/install
MDANSE""
${
NORMAL
}
"
exit
$status
fi
BuildServer/Unix/setup_ci.sh
View file @
5dd91b6a
...
...
@@ -32,10 +32,6 @@ if [ -z ${CI_COMMIT_REF_NAME} ]; then
export
CI_COMMIT_REF_NAME
fi
export
RED
=
"
\\
033[1;31m"
export
BLUE
=
"
\\
033[1;34m"
export
NORMAL
=
"
\\
033[0m"
echo
-e
"
${
BLUE
}
""Commit id =
${
CI_COMMIT_ID
}
""
${
NORMAL
}
"
echo
-e
"
${
BLUE
}
""Branch name =
${
CI_COMMIT_REF_NAME
}
""
${
NORMAL
}
"
...
...
@@ -64,5 +60,3 @@ else
fi
fi
export
VERSION_NAME
BuildServer/Unix/tests.sh
View file @
5dd91b6a
...
...
@@ -3,7 +3,6 @@
#############################
# PREPARATION
#############################
export
PYTHONPATH
=
${
CI_TEMP_INSTALL_DIR
}
/lib/python2.7/site-packages:
${
PYTHONPATH
}
#############################
...
...
@@ -43,4 +42,3 @@ if [ $status -ne 0 ]; then
echo
-e
"
${
RED
}
"
"One or several functional tests failed"
exit
$status
fi
BuildServer/Windows/build.bat
View file @
5dd91b6a
@echo
off
rem VERSION_NAME
rem MDANSE_SOURCE_DIR
rem BUILD_TARGET
rem MDANSE_DEPENDENCIES_DIR
rem MDANSE_TEMPORARY_INSTALLATION_DIR
rem Set the location of the MDANSE CI scripts
set
BUILD_SCRIPT_DIR
=
%MDANSE_SOURCE_DIR%
\\BuildServer\\Windows
...
...
BuildServer/Windows/definitions.bat
View file @
5dd91b6a
...
...
@@ -24,4 +24,4 @@ set cmd="git rev-parse --short HEAD"
for
/F
%%i
in
(
'
%cmd%
'
)
do
set
MDANSE_GIT_CURRENT_COMMIT
=
%%i
rem Get commit branch from Gitlab
set
MDANSE_GIT_BRANCH_NAME
=
%CI_COMMIT_REF_NAME%
\ No newline at end of file
set
MDANSE_GIT_BRANCH_NAME
=
%CI_COMMIT_REF_NAME%
BuildServer/Windows/deploy.bat
View file @
5dd91b6a
@echo
off
rem VERSION_NAME
rem MDANSE_SOURCE_DIR
rem BUILD_TARGET
rem MDANSE_DEPENDENCIES_DIR
rem MDANSE_TEMPORARY_INSTALLATION_DIR
cd
%MDANSE_SOURCE_DIR%
...
...
BuildServer/Windows/setup_ci.bat
View file @
5dd91b6a
...
...
@@ -26,4 +26,4 @@ if "%MDANSE_GIT_BRANCH_NAME%" == "master" (
set
VERSION_NAME
=
%MDANSE_VERSION%
-beta
-
%MDANSE_GIT_CURRENT_COMMIT%
sed
-i
"s/.*__beta__.*/__beta__ = \"
beta
\
"/"
MDANSE
/__pkginfo__.py
)
)
\ No newline at end of file
)
BuildServer/Windows/tests.bat
View file @
5dd91b6a
@echo
off
rem VERSION_NAME
rem MDANSE_SOURCE_DIR
rem BUILD_TARGET
rem MDANSE_DEPENDENCIES_DIR
rem MDANSE_TEMPORARY_INSTALLATION_DIR
:: %1 --> the build target
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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