-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 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,6 @@ | ||
#!/bin/bash -x | ||
|
||
set -e | ||
|
||
. $CONDA/etc/profile.d/conda.sh | ||
conda activate ./env |
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,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.
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,47 @@ | ||
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' | ||
|
||
- script: | | ||
cd $(Build.SourcesDirectory) | ||
git checkout --orphan $(Build.SourceBranchName)-pdf | ||
git rm -rf --cached . | ||
git add -f paper/exoplanet.pdf | ||
git add -f paper/figures/*.pdf | ||
git add -f paper/figures/*_exec.ipynb | ||
git add -f paper/figures/notebook_errors.log | ||
git -c user.name='azure' -c user.email='azure' commit -m "building the paper" | ||
git push -q -f https://$(GITHUB_USER):$(GITHUB_API_KEY)@github.com/dfm/exoplanet $(Build.SourceBranchName)-pdf >/dev/null 2>&1 | ||
displayName: 'Upload the paper' | ||
condition: always() |
Empty file.