-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Building new version of xspec-modeldonly 6.22
- Loading branch information
Showing
11 changed files
with
176 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
#!/usr/bin/env bash | ||
TRAVIS_OS_NAME="unknown" | ||
|
||
if [[ "$OSTYPE" == "linux-gnu" ]]; then | ||
|
||
# Linux | ||
|
||
TRAVIS_OS_NAME="linux" | ||
|
||
|
||
elif [[ "$OSTYPE" == darwin* ]]; then | ||
|
||
# Mac OSX | ||
|
||
TRAVIS_OS_NAME="osx" | ||
|
||
|
||
elif [[ "$OSTYPE" == "cygwin" ]]; then | ||
|
||
# POSIX compatibility layer and Linux environment emulation for Windows | ||
|
||
TRAVIS_OS_NAME="linux" | ||
|
||
else | ||
|
||
# Unknown. | ||
|
||
echo "Could not guess your OS. Exiting." | ||
|
||
exit 1 | ||
|
||
fi | ||
|
||
echo "Running on ${TRAVIS_OS_NAME}" | ||
|
||
TRAVIS_PYTHON_VERSION=2.7 | ||
TRAVIS_BUILD_NUMBER=0 | ||
|
||
ENVNAME=xsmodelsonly_test_$TRAVIS_PYTHON_VERSION | ||
|
||
echo "Python version: ${TRAVIS_PYTHON_VERSION}" | ||
|
||
# Make sure we fail in case of errors | ||
set -e | ||
|
||
# Environment | ||
# libgfortranver="3.0" | ||
|
||
UPDATE_CONDA=true | ||
|
||
#if [[ ${TRAVIS_OS_NAME} == linux ]]; | ||
#then | ||
# miniconda_os=Linux | ||
# compilers="gcc_linux-64 gxx_linux-64 gfortran_linux-64" | ||
#else # osx | ||
# miniconda_os=MacOSX | ||
# compilers="clang_osx-64 clangxx_osx-64 gfortran_osx-64" | ||
# # On macOS we also need the conda libx11 libraries used to build xspec | ||
# # We also need to pin down ncurses, for now only on macos. | ||
# xorg="xorg-libx11 ncurses=5" | ||
#fi | ||
|
||
|
||
|
||
if $UPDATE_CONDA ; then | ||
# Update conda | ||
echo "Update conda..." | ||
conda update --yes -q conda conda-build | ||
fi | ||
|
||
if [[ ${TRAVIS_OS_NAME} == osx ]]; | ||
then | ||
conda config --add channels conda-forge | ||
fi | ||
|
||
# Answer yes to all questions (non-interactive) | ||
conda config --set always_yes true | ||
|
||
# We will upload explicitly at the end, if successful | ||
conda config --set anaconda_upload no | ||
|
||
# Create test environment | ||
echo "Create test environment..." | ||
|
||
conda create --yes --name $ENVNAME -c conda-forge python=$TRAVIS_PYTHON_VERSION | ||
|
||
# Make sure conda-forge is the first channel | ||
conda config --add channels conda-forge | ||
|
||
conda config --add channels defaults | ||
|
||
# Activate test environment | ||
echo "Activate test environment..." | ||
|
||
#source $HOME/work/fermi/miniconda3/etc/profile.d/conda.sh | ||
#conda activate $ENVNAME | ||
source activate $ENVNAME | ||
|
||
# Build package | ||
echo "Build package..." | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
conda build --python=$TRAVIS_PYTHON_VERSION conda_recipe/xspec-modelsonly | ||
#conda index $HOME/work/fermi/miniconda3/conda-bld | ||
conda index $HOME/miniconda/conda-bld | ||
else | ||
# there is some strange error about the prefix length | ||
conda build --no-build-id --python=$TRAVIS_PYTHON_VERSION conda_recipe/xspec-modelsonly | ||
conda index $HOME/miniconda/conda-bld | ||
fi | ||
echo "======> installing..." | ||
conda install --use-local -c conda-forge xspec-modelsonly | ||
|
||
# Run tests | ||
#cd astromodels/tests | ||
#python -m pytest -vv --cov=astromodels # -k "not slow" | ||
|
||
# Codecov needs to run in the main git repo | ||
|
||
## Upload coverage measurements if we are on Linux | ||
#if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
|
||
# echo "********************************** COVERAGE ******************************" | ||
# codecov -t 493c9a2d-42fc-40d6-8e65-24e681efaa1e# | ||
|
||
#fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONDA_BUILD_SYSROOT: | ||
- /opt/MacOSX10.9.sdk # [osx] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
package: | ||
name: xspec-modelsonly | ||
version: "6.20" | ||
version: "6.22.1" | ||
|
||
source: | ||
#path: xspec-modelsonly-v6.20-no-big-data.tar.gz | ||
#url: https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/release/xspec-modelsonly-v6.21.tar.gz | ||
url: file:///work/xspec-modelsonly-v6.20-no-big-data.tar.gz | ||
# md5: 0abea9e1609fcdc2c3e3ada92043d17b | ||
url: https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/lheasoft6.22.1/xspec-modelsonly-v6.22.1.tar.gz | ||
fn: xspec-modelsonly-v6.22.1.tar.gz | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
|
||
build: | ||
- cfitsio | ||
- ccfits | ||
- wcslib | ||
- readline | ||
|
||
run: | ||
- cfitsio | ||
- ccfits | ||
- wcslib | ||
- readline | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- {{ compiler('fortran') }} | ||
- ncurses==5.* | ||
- readline==6.2 | ||
- cfitsio | ||
- ccfits | ||
- wcslib | ||
- libgfortran | ||
#- clang_osx-64 # [osx] | ||
#- clangxx_osx-64 # [osx] | ||
#- gfortran_osx-64 # [osx] | ||
host: | ||
- ncurses==5.* | ||
- readline==6.2 | ||
|
||
# Note that ncurses is only needed to build but I am not | ||
# sure it's needed at all at run-time. To keep things | ||
# safe and simple I am keeping it, but removing the version | ||
# number since it was only there to make `configure` happy | ||
# and there is no evidence ncurses is required in the | ||
# first place. | ||
# run: | ||
# - readline | ||
|
||
about: | ||
home: https://heasarc.gsfc.nasa.gov/xanadu/xspec/ |
3 changes: 0 additions & 3 deletions
3
conda_recipe/xspec-modelsonly/xspec-modelsonly-v6.20-no-big-data.tar.gz
This file was deleted.
Oops, something went wrong.