Skip to content

Commit

Permalink
new pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Jan 14, 2020
1 parent 681bc86 commit 15751d1
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .ci/azure/activate_conda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -x

set -e

. $CONDA/etc/profile.d/conda.sh
conda activate ./env
9 changes: 9 additions & 0 deletions .ci/azure/setup_conda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -x

set -e

sudo chown -R $USER $CONDA
. $CONDA/etc/profile.d/conda.sh
conda env create -q --prefix ./env -f environment.yml
conda activate ./env
env/bin/python -m pip install -e .
Empty file added .ci/build-docs.yml
Empty file.
22 changes: 5 additions & 17 deletions azure-pipelines.yml → .ci/build-paper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,32 @@ trigger:
- master
variables:
- group: exoplanet-variables

pool:
vmImage: Ubuntu-16.04

steps:

- script: |
git submodule update --init
displayName: 'Fetch submodules'

- script: |
sudo chown -R $USER $CONDA
. $CONDA/etc/profile.d/conda.sh
conda create --yes --quiet --name exoplanet python=3.7.3 pip
source .ci/azure/setup_conda.sh
displayName: 'Setup conda'

- script: |
. $CONDA/etc/profile.d/conda.sh
conda activate exoplanet
pip install -U pip
pip install -U setuptools
pip install -U -r requirements.txt
pip install -U -r paper/requirements.txt
source .ci/azure/activate_conda.sh
env/bin/python -m pip install -U -r paper/requirements.txt
conda install -y -q -c conda-forge tectonic
theano-cache purge
python setup.py install
displayName: 'Install dependencies'

- script: |
. $CONDA/etc/profile.d/conda.sh
conda activate exoplanet
source .ci/azure/activate_conda.sh
cd $(Build.SourcesDirectory)/paper/figures
python run_notebooks.py
displayName: 'Generate the figures'

- script: |
. $CONDA/etc/profile.d/conda.sh
conda activate exoplanet
source .ci/azure/activate_conda.sh
cd $(Build.SourcesDirectory)/paper
make
displayName: 'Build the paper'
Expand Down
34 changes: 34 additions & 0 deletions .ci/run-tutorials.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
pr: none
trigger:
- master
variables:
- group: exoplanet-variables
pool:
vmImage: Ubuntu-16.04

steps:
- script: |
git submodule update --init
displayName: 'Fetch submodules'

- script: |
source .ci/azure/setup_conda.sh
displayName: 'Setup conda'

- script: |
source .ci/azure/activate_conda.sh
env/bin/python -m pip install -U -r paper/requirements.txt
conda install -y -q -c conda-forge tectonic
displayName: 'Install dependencies'

- script: |
source .ci/azure/activate_conda.sh
cd $(Build.SourcesDirectory)/paper/figures
python run_notebooks.py
displayName: 'Generate the figures'

- script: |
source .ci/azure/activate_conda.sh
cd $(Build.SourcesDirectory)/paper
make
displayName: 'Build the paper'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
known_third_party = ["astropy", "matplotlib", "nbconvert", "nbformat", "numpy", "packaging", "pkg_resources", "pymc3", "pytest", "scipy", "setuptools", "theano", "tqdm"]
known_third_party = ["astropy", "matplotlib", "nbconvert", "nbformat", "numpy", "packaging", "pkg_resources", "pymc3", "pytest", "scipy", "setuptools", "sphinx_typlog_theme", "theano", "tqdm"]

0 comments on commit 15751d1

Please sign in to comment.