<commit_before>#!/bin/bash -x

#- Fail early, fail often
set -e

# For debugging
printenv

# CONDA
# Install conda
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b -p $HOME/miniconda
export PATH=/home/travis/miniconda/bin:$PATH
conda update --yes conda

conda create --yes -n test python=$TRAVIS_PYTHON_VERSION pip
source activate test

# CORE DEPENDENCIES
# conda install --yes pytest Cython jinja2 psutil pyyaml requests

# from the .travis.yml in https://github.com/numba
# conda install --yes -c numba llvmdev="3.7*"
# git clone git://github.com/numba/llvmlite.git -q
# cd llvmlite && python setup.py build && python setup.py install -q >/dev/null && cd ..

# numpy scipy etc.
conda install --yes numpy scipy astropy h5py numba

echo '----------------------------------------------------------------------'
echo $PYTHONPATH
which python
which nosetests
echo '----------------------------------------------------------------------'

# Get redrock templates
cd py/redrock
RR_TEMPLATE_VER=0.2
wget https://github.com/sbailey/redrock-templates/archive/${RR_TEMPLATE_VER}.tar.gz
tar -xzf ${RR_TEMPLATE_VER}.tar.gz
mv redrock-templates-${RR_TEMPLATE_VER} templates
rm ${RR_TEMPLATE_VER}.tar.gz<commit_msg>debugging travis<commit_after>#!/bin/bash -x

#- Fail early, fail often
set -e

# For debugging
printenv

# CONDA
# Install conda
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b -p $HOME/miniconda
export PATH=/home/travis/miniconda/bin:$PATH
conda update --yes conda

conda create --yes -n test python=$TRAVIS_PYTHON_VERSION pip
source activate test

# CORE DEPENDENCIES
# conda install --yes pytest Cython jinja2 psutil pyyaml requests

# from the .travis.yml in https://github.com/numba
# conda install --yes -c numba llvmdev="3.7*"
# git clone git://github.com/numba/llvmlite.git -q
# cd llvmlite && python setup.py build && python setup.py install -q >/dev/null && cd ..

# numpy scipy etc.
conda install --yes numpy scipy astropy h5py numba

echo '----------------------------------------------------------------------'
echo PYTHONPATH: $PYTHONPATH
which python
which nosetests
echo '----------------------------------------------------------------------'

# Get redrock templates
cd py/redrock
RR_TEMPLATE_VER=0.2
wget https://github.com/sbailey/redrock-templates/archive/${RR_TEMPLATE_VER}.tar.gz
tar -xzf ${RR_TEMPLATE_VER}.tar.gz
mv redrock-templates-${RR_TEMPLATE_VER} templates
rm ${RR_TEMPLATE_VER}.tar.gz
cd ../../
pwd
{'fraction_non_alphanumeric': 0.21772639691714837, 'fraction_numerical': 0.007707129094412331, 'mean_word_length': 2.546448087431694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2053671', 'n_tokens_mistral': 901, 'n_tokens_neox': 893, 'n_words': 229}