summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJustin Ely <ely@stsci.edu>2016-09-30 15:45:09 -0400
committerJoseph Hunkeler <jhunkeler@users.noreply.github.com>2016-09-30 15:45:09 -0400
commit767c217f3cd34e33f0aab5b7415badbe0733d8c2 (patch)
treef0c04a5c2c8eacff8e39df9db6498a638ae2650a /.travis.yml
parentfb19feed0bc525bc58832a39cd9e11a717b68f8f (diff)
downloadastroconda-767c217f3cd34e33f0aab5b7415badbe0733d8c2.tar.gz
Create release_notes and package_manifest automatically (#24)
* auto creating release_notes and package_manifest release_notes now provide links to individual repository release notes instead of collecting them together Using anonymous access with github3. Note that this has API call restrictions, so can only do so many times within an hour before being blocked. setup.py install now runs the two scripts in source to generate the manifest and release notes rst files. minor changes to py scripts to use different org access calls, and defining output path to not be CWD. requirement and calls to pandoc have also been removed. files are written directly to rst instead of being written to md and converted. * Exclude non-astroconda packages from release_notes * change disclaimer at top of release notes
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml62
1 files changed, 62 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..767db38
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,62 @@
+language: python
+
+# Setting sudo to false opts in to Travis-CI container-based builds.
+sudo: false
+
+# The apt packages below are needed for sphinx builds, which can no longer
+# be installed with sudo apt-get.
+addons:
+ apt:
+ packages:
+ - graphviz
+ - texlive-latex-extra
+ - dvipng
+
+os:
+ - linux
+
+
+python:
+ - 3.5
+
+env:
+ global:
+ # SET DEFAULTS TO AVOID REPEATING IN MOST CASES
+ - SETUPTOOLS_VERSION=stable
+ - PIP_INSTALL='pip install'
+ - INSTALL_OPTIONAL=true
+ - SETUP_CMD='test'
+
+before_install:
+
+ # USE UTF8 ENCODING. SHOULD BE DEFAULT, BUT THIS IS INSURANCE AGAINST
+ # FUTURE CHANGES
+ - export PYTHONIOENCODING=UTF8
+
+ # http://conda.pydata.org/docs/travis.html#the-travis-yml-file
+ - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
+ - bash miniconda.sh -b -p $HOME/miniconda
+ - export PATH="$HOME/miniconda/bin:$PATH"
+ - hash -r
+ - conda config --set always_yes yes --set changeps1 no
+ - conda update -q conda
+ - conda info -a
+
+ #CHECK INTERACTIVE MATPLOTLIB BACKENDS
+ - export DISPLAY=:99.0
+ - sh -e /etc/init.d/xvfb start
+
+
+install:
+ - conda create -n test python=$TRAVIS_PYTHON_VERSION
+ - source activate test
+
+ # ADD STSCI ASTROCONDA CHANNEL
+ - conda config --add channels http://ssb.stsci.edu/astroconda
+
+ # RTD deps
+ - $PIP_INSTALL -r source/rtd-pip-requirements.txt
+
+
+script:
+ - python setup.py install