Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
15e99ac6
Commit
15e99ac6
authored
Feb 10, 2018
by
Ivan Pozdeev
Browse files
Merge branch 'devel' into upstream_diagnostics
parents
d1a7f446
e61ae74b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
33 deletions
+29
-33
.appveyor.yml
.appveyor.yml
+0
-5
.travis.yml
.travis.yml
+0
-14
README.rst
README.rst
+13
-8
common_utils.sh
common_utils.sh
+1
-1
configure_build.sh
configure_build.sh
+10
-0
docker_build_wrap.sh
docker_build_wrap.sh
+2
-1
osx_utils.sh
osx_utils.sh
+0
-3
tests/test_library_builders.sh
tests/test_library_builders.sh
+1
-1
travis_osx_steps.sh
travis_osx_steps.sh
+2
-0
No files found.
.appveyor.yml
View file @
15e99ac6
...
@@ -32,11 +32,6 @@ environment:
...
@@ -32,11 +32,6 @@ environment:
PYTHON_VERSION
:
"
3.6"
PYTHON_VERSION
:
"
3.6"
PYTHON_ARCH
:
"
64"
PYTHON_ARCH
:
"
64"
branches
:
only
:
-
master
-
devel
# We always use a 64-bit machine, but can build x86 distributions
# We always use a 64-bit machine, but can build x86 distributions
# with the TARGET_ARCH variable.
# with the TARGET_ARCH variable.
platform
:
platform
:
...
...
.travis.yml
View file @
15e99ac6
...
@@ -2,19 +2,10 @@
...
@@ -2,19 +2,10 @@
language
:
generic
language
:
generic
branches
:
only
:
-
master
-
devel
cache
:
cache
:
directories
:
directories
:
-
$HOME/.ccache
-
$HOME/.ccache
env
:
global
:
-
HOMEBREW_NO_AUTO_UPDATE=1
matrix
:
matrix
:
include
:
include
:
-
os
:
linux
-
os
:
linux
...
@@ -32,11 +23,6 @@ matrix:
...
@@ -32,11 +23,6 @@ matrix:
-
TEST_BUILDS=1
-
TEST_BUILDS=1
-
USE_CCACHE=1
-
USE_CCACHE=1
sudo
:
required
sudo
:
required
-
os
:
osx
osx_image
:
xcode6.4
env
:
-
PYTHON_VERSION=2.7.11
-
TEST_BUILDS=1
-
os
:
osx
-
os
:
osx
osx_image
:
xcode6.4
osx_image
:
xcode6.4
env
:
env
:
...
...
README.rst
View file @
15e99ac6
...
@@ -322,15 +322,20 @@ To use these scripts
...
@@ -322,15 +322,20 @@ To use these scripts
Optionally you can specify a different location for ``config.sh`` file with
Optionally you can specify a different location for ``config.sh`` file with
the ``$CONFIG_PATH`` environment variable.
the ``$CONFIG_PATH`` environment variable.
* Optionally, create an ``env_vars.sh`` file to override the defaults for any
* Optionally, create an ``env_vars.sh`` file to override the defaults for any
environment variables used by ``configure_build.sh``/``library_builders.sh``.
environment variables used by
In Linux, they cannot be just set in the initial environment because the
``configure_build.sh``/``library_builders.sh``. In Linux, the environment
build runs in Docker, so only the variables explicitly passed to
variables used for the build cannot be set in the ``.travis.yml`` file,
``docker run`` are propagated.
because the build processing runs in a Docker container, so only the only
environment variables that reach the container are those passed in via the
Likewise, you can specify a different location for the file by setting the
``docker run`` command, or those set in ``env_vars.sh``.
the ``$ENV_VARS_PATH`` environment variable.
As for the ``config.sh`` file, you can specify a different location for the
file by setting the ``$ENV_VARS_PATH`` environment variable. The path in
``$ENV_VARS_PATH`` is relative to the repository root directory. For
example, if your repository had a subdirectory ``scripts`` with a file
``my_env_vars.sh``, you should set ``ENV_VARS_PATH=scripts/my_env_vars.sh``.
* Make sure your project is set up to build on travis-ci, and you should now
* Make sure your project is set up to build on travis-ci, and you should now
be ready (to begin the long slow debugging process, probably).
be ready (to begin the long slow debugging process, probably).
...
...
common_utils.sh
View file @
15e99ac6
...
@@ -311,7 +311,7 @@ function fill_submodule {
...
@@ -311,7 +311,7 @@ function fill_submodule {
PYPY_URL
=
https://bitbucket.org/pypy/pypy/downloads
PYPY_URL
=
https://bitbucket.org/pypy/pypy/downloads
# As of 201
7-1
1-1
9
, the latest verions of PyPy.
# As of 201
8-0
1-1
4
, the latest verions of PyPy.
LATEST_PP_1
=
1
.9
LATEST_PP_1
=
1
.9
LATEST_PP_2p0
=
2
.0.2
LATEST_PP_2p0
=
2
.0.2
...
...
configure_build.sh
View file @
15e99ac6
...
@@ -22,6 +22,16 @@ if [ -n "$IS_OSX" ]; then
...
@@ -22,6 +22,16 @@ if [ -n "$IS_OSX" ]; then
export
CFLAGS
=
"
${
CFLAGS
:-
$ARCH_FLAGS
}
"
export
CFLAGS
=
"
${
CFLAGS
:-
$ARCH_FLAGS
}
"
export
CXXFLAGS
=
"
${
CXXFLAGS
:-
$ARCH_FLAGS
}
"
export
CXXFLAGS
=
"
${
CXXFLAGS
:-
$ARCH_FLAGS
}
"
export
FFLAGS
=
"
${
FFLAGS
:-
$ARCH_FLAGS
}
"
export
FFLAGS
=
"
${
FFLAGS
:-
$ARCH_FLAGS
}
"
# Disable homebrew auto-update
export
HOMEBREW_NO_AUTO_UPDATE
=
1
else
# Strip all binaries after compilation.
STRIP_FLAGS
=
${
STRIP_FLAGS
:-
"-Wl,-strip-all"
}
export
CFLAGS
=
"
${
CFLAGS
:-
$STRIP_FLAGS
}
"
export
CXXFLAGS
=
"
${
CXXFLAGS
:-
$STRIP_FLAGS
}
"
export
FFLAGS
=
"
${
FFLAGS
:-
$STRIP_FLAGS
}
"
fi
fi
# Promote BUILD_PREFIX on search path to any newly built libs
# Promote BUILD_PREFIX on search path to any newly built libs
...
...
docker_build_wrap.sh
View file @
15e99ac6
...
@@ -17,7 +17,8 @@ WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse}
...
@@ -17,7 +17,8 @@ WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse}
# Location of `config.sh` file, default "./config.sh"
# Location of `config.sh` file, default "./config.sh"
CONFIG_PATH
=
${
CONFIG_PATH
:-
config
.sh
}
CONFIG_PATH
=
${
CONFIG_PATH
:-
config
.sh
}
ENV_VARS_PATH
=
${
ENV_VARS_PATH
:-
env_vars
.sh
}
# Path is relative to repository from which we ran
ENV_VARS_PATH
=
"/io/
${
ENV_VARS_PATH
:-
env_vars
.sh
}
"
# Always pull in common and library builder utils
# Always pull in common and library builder utils
MULTIBUILD_DIR
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
MULTIBUILD_DIR
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
...
...
osx_utils.sh
View file @
15e99ac6
...
@@ -281,9 +281,6 @@ function get_macpython_environment {
...
@@ -281,9 +281,6 @@ function get_macpython_environment {
local
version
=
$1
local
version
=
$1
local
venv_dir
=
$2
local
venv_dir
=
$2
# We MUST set this before calling homebrew or it could potentially fail
# See travis-ci issue #8552 for more details
export
HOMEBREW_NO_AUTO_UPDATE
=
1
if
[
"
$USE_CCACHE
"
==
"1"
]
;
then
if
[
"
$USE_CCACHE
"
==
"1"
]
;
then
activate_ccache
activate_ccache
...
...
tests/test_library_builders.sh
View file @
15e99ac6
...
@@ -12,7 +12,7 @@ suppress build_libpng
...
@@ -12,7 +12,7 @@ suppress build_libpng
suppress build_libwebp
suppress build_libwebp
suppress build_szip
suppress build_szip
suppress build_swig
suppress build_swig
suppress build_github fredrik-johansson/arb 2.1
1.1
suppress build_github fredrik-johansson/arb 2.1
2.0
suppress build_flex
suppress build_flex
suppress build_openblas
suppress build_openblas
...
...
travis_osx_steps.sh
View file @
15e99ac6
...
@@ -18,6 +18,8 @@ source $MULTIBUILD_DIR/library_builders.sh
...
@@ -18,6 +18,8 @@ source $MULTIBUILD_DIR/library_builders.sh
# config.sh can override any function defined here.
# config.sh can override any function defined here.
function
before_install
{
function
before_install
{
# Uninstall oclint. See Travis-CI gh-8826
brew cask uninstall oclint
||
true
export
CC
=
clang
export
CC
=
clang
export
CXX
=
clang++
export
CXX
=
clang++
get_macpython_environment
$MB_PYTHON_VERSION
venv
get_macpython_environment
$MB_PYTHON_VERSION
venv
...
...
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