Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (34 sloc) 971 Bytes
sudo: false
language: python
matrix:
include:
- python: '3.6'
env: DEPLOY_ARGS="-3 -b"
- python: '2.7'
env: DEPLOY_ARGS="-2 -b"
- &pytest
env: TEST='pytest'
python: '3.6'
install: pip install --upgrade -r .travis.requirements.txt
script: |
python setup.py test
# https://github.com/tholo/pytest-flake8/issues/27
flake8 bin/lsst-build
- <<: *pytest
python: '2.7'
script: |
set -e
export LSST_BUILD_GITREV="$TRAVIS_COMMIT"
echo "TRAVIS_COMMIT: ${TRAVIS_COMMIT}"
LSSTSW="${PWD}/lsstsw"
git clone https://github.com/lsst/lsstsw.git "$LSSTSW"
ln -s .. "${LSSTSW}/lsst_build"
# prevent ./bin/deploy from trying to [re]clone lsst_build
touch "${LSSTSW}/lsst_build/.deployed"
cd "$LSSTSW"
./bin/deploy $DEPLOY_ARGS
. "${LSSTSW}/bin/setup.sh"
rebuild cfitsio
python -c "import yaml as y;print(y.dump(y.load(open('./build/status.yaml'))))"
notifications:
email: false