Compare commits
6 Commits
develop
...
releases/v
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d62dc366ef | ||
![]() |
4a7e3dcedd | ||
![]() |
85c9819615 | ||
![]() |
7c4b5b6779 | ||
![]() |
8554e933d2 | ||
![]() |
03a53dca5f |
75
.travis.yml
75
.travis.yml
@ -12,11 +12,7 @@ branches:
|
||||
# Build matrix
|
||||
#=============================================================================
|
||||
|
||||
# Adding the keyword dist to permit an `allow_failures` section
|
||||
# under `matrix.include`. More information here:
|
||||
#
|
||||
# https://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-to-Fail
|
||||
dist: trusty
|
||||
dist: xenial
|
||||
|
||||
jobs:
|
||||
fast_finish: true
|
||||
@ -29,6 +25,7 @@ jobs:
|
||||
env: TEST_SUITE=flake8
|
||||
- stage: 'unit tests + documentation'
|
||||
python: '2.6'
|
||||
dist: trusty
|
||||
sudo: required
|
||||
os: linux
|
||||
language: python
|
||||
@ -56,7 +53,6 @@ jobs:
|
||||
- python: '3.7'
|
||||
sudo: required
|
||||
os: linux
|
||||
dist: xenial
|
||||
language: python
|
||||
env: TEST_SUITE=unit
|
||||
- python: '3.6'
|
||||
@ -108,13 +104,7 @@ jobs:
|
||||
os: linux
|
||||
language: python
|
||||
env: [ TEST_SUITE=build, 'SPEC=mpich' ]
|
||||
- stage: 'docker build'
|
||||
sudo: required
|
||||
os: linux
|
||||
language: generic
|
||||
env: TEST_SUITE=docker
|
||||
allow_failures:
|
||||
- dist: xenial
|
||||
- env: TEST_SUITE=docker
|
||||
# temporary Python 2.6 exception while we figure out why Travis is hanging
|
||||
- python: '2.6'
|
||||
@ -123,9 +113,6 @@ stages:
|
||||
- 'style checks'
|
||||
- 'unit tests + documentation'
|
||||
- 'build tests'
|
||||
- name: 'docker build'
|
||||
if: type = push AND branch IN (develop, master)
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Environment
|
||||
@ -135,39 +122,49 @@ sudo: false
|
||||
|
||||
# Docs need graphviz to build
|
||||
addons:
|
||||
# for Linux builds, we use APT
|
||||
apt:
|
||||
packages:
|
||||
- ccache
|
||||
- cmake
|
||||
- gfortran
|
||||
- mercurial
|
||||
- graphviz
|
||||
- gnupg2
|
||||
- cmake
|
||||
- kcov
|
||||
- mercurial
|
||||
- ninja-build
|
||||
- perl
|
||||
- perl-base
|
||||
- realpath
|
||||
- r-base
|
||||
- r-base-core
|
||||
- r-base-dev
|
||||
- perl
|
||||
- perl-base
|
||||
# for Mac builds, we use Homebrew
|
||||
homebrew:
|
||||
packages:
|
||||
- python@2
|
||||
- gcc
|
||||
- gnupg2
|
||||
- ccache
|
||||
|
||||
# ~/.ccache needs to be cached directly as Travis is not taking care of it
|
||||
# (possibly because we use 'language: python' and not 'language: c')
|
||||
cache:
|
||||
pip: true
|
||||
ccache: true
|
||||
directories:
|
||||
- ~/.mirror
|
||||
- ~/.ccache
|
||||
|
||||
# Work around Travis's lack of support for Python on OSX
|
||||
before_install:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
brew update;
|
||||
export HOMEBREW_NO_AUTO_UPDATE=1;
|
||||
rm /usr/local/include/c++ ;
|
||||
brew ls --versions python@2 > /dev/null || brew install python@2;
|
||||
brew ls --versions gcc > /dev/null || brew install gcc;
|
||||
brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
|
||||
pip2 install --upgrade pip;
|
||||
pip2 install virtualenv;
|
||||
virtualenv venv;
|
||||
source venv/bin/activate;
|
||||
fi
|
||||
- ccache -M 2G && ccache -z
|
||||
|
||||
# Install various dependencies
|
||||
install:
|
||||
@ -190,8 +187,8 @@ before_script:
|
||||
- git fetch origin develop:develop
|
||||
|
||||
# Set up external deps for build tests, b/c they take too long to compile
|
||||
- if [[ "$TEST_SUITE" == "build" ]]; then cp
|
||||
share/spack/qa/configuration/packages.yaml etc/spack/packages.yaml;
|
||||
- if [[ "$TEST_SUITE" == "build" ]]; then
|
||||
cp share/spack/qa/configuration/*.yaml etc/spack/;
|
||||
fi
|
||||
|
||||
#=============================================================================
|
||||
@ -202,27 +199,13 @@ services:
|
||||
|
||||
script:
|
||||
- share/spack/qa/run-$TEST_SUITE-tests
|
||||
- if [[ "$TEST_SUITE" == "docker build" ]]; then
|
||||
login_attempted=0; login_success=0;
|
||||
for config in share/spack/docker/config/* ; do
|
||||
source "$config" ;
|
||||
./share/spack/docker/build-image.sh;
|
||||
if [ "$TRAVIS_EVENT_TYPE" != "pull_request" ]; then
|
||||
if [ "$login_attempted" '=' '0' ]; then
|
||||
if echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin; then
|
||||
login_success=1;
|
||||
fi;
|
||||
login_attempted=1;
|
||||
fi;
|
||||
if [ "$login_success" '=' '1' ]; then
|
||||
./share/spack/docker/push-image.sh;
|
||||
fi
|
||||
fi
|
||||
done;
|
||||
fi
|
||||
|
||||
after_success:
|
||||
- ccache -s
|
||||
- if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then
|
||||
codecov --env PYTHON_VERSION
|
||||
--required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
|
||||
--required
|
||||
--flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
|
||||
fi
|
||||
|
||||
#=============================================================================
|
||||
|
@ -1635,7 +1635,7 @@ added to the configuration.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ spack install gcc
|
||||
$ spack install gcc @7.2.0
|
||||
==> libsigsegv is already installed in /home/spack1/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/libsigsegv-2.11-fypapcprssrj3nstp6njprskeyynsgaz
|
||||
==> m4 is already installed in /home/spack1/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/m4-1.4.18-suf5jtcfehivwfesrc5hjy72r4nukyel
|
||||
==> pkgconf is already installed in /home/spack1/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pkgconf-1.4.2-fovrh7alpft646n6mhis5mml6k6e5f4v
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
|
||||
#: major, minor, patch version for Spack, in a tuple
|
||||
spack_version_info = (0, 12, 0)
|
||||
spack_version_info = (0, 12, 1)
|
||||
|
||||
#: String containing Spack version joined with .'s
|
||||
spack_version = '.'.join(str(v) for v in spack_version_info)
|
||||
|
@ -269,9 +269,7 @@ def build_tarball(spec, outdir, force=False, rel=False, unsigned=False,
|
||||
raise NoOverwriteException(str(specfile_path))
|
||||
# make a copy of the install directory to work with
|
||||
workdir = os.path.join(tempfile.mkdtemp(), os.path.basename(spec.prefix))
|
||||
# set symlinks=False here to avoid broken symlinks when archiving and
|
||||
# moving the package
|
||||
install_tree(spec.prefix, workdir, symlinks=False)
|
||||
install_tree(spec.prefix, workdir, symlinks=True)
|
||||
|
||||
# create info for later relocation and create tar
|
||||
write_buildinfo_file(spec.prefix, workdir, rel=rel)
|
||||
@ -398,8 +396,6 @@ def relocate_package(workdir, allow_root):
|
||||
new_path = spack.store.layout.root
|
||||
old_path = buildinfo['buildpath']
|
||||
rel = buildinfo.get('relative_rpaths', False)
|
||||
if rel:
|
||||
return
|
||||
|
||||
tty.msg("Relocating package from",
|
||||
"%s to %s." % (old_path, new_path))
|
||||
|
Loading…
Reference in New Issue
Block a user