Skip to content

Commit

Permalink
CI: Try to automate constructor installers once more
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Feb 22, 2018
1 parent 365e6cb commit b28b76b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 43 deletions.
36 changes: 18 additions & 18 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ install:
- rm -rf %PYTHON%/conda-bld/*
- conda build -c omnia -c bioconda devtools/conda-recipe
- IF "%conda_upload%"=="true" anaconda -t %BINSTAR_TOKEN% upload %PYTHON%/conda-bld/win-*/ommprotocol-*.tar.bz2 -u insilichem --no-progress --force
# - IF "%conda_upload%"=="true" conda install -y constructor
# - IF "%conda_upload%"=="true" conda remove -y --force constructor
# - IF "%conda_upload%"=="true" pip install -U --no-deps https://github.com/jaimergp/constructor/archive/jinja-env.zip
# - IF "%conda_upload%"=="true" constructor .
- IF "%conda_upload%"=="true" conda install -y constructor
- IF "%conda_upload%"=="true" conda remove -y --force constructor
- IF "%conda_upload%"=="true" pip install -U --no-deps https://github.com/jaimergp/constructor/archive/jinja-env.zip
- IF "%conda_upload%"=="true" constructor .

# artifacts:
# - path: 'ommprotocol*.exe'
# name: ommprotocol
artifacts:
- path: 'ommprotocol*.exe'
name: ommprotocol

build: off

# deploy:
# provider: GitHub
# release: ommprotocol-$(APPVEYOR_REPO_TAG_NAME)
# description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
# auth_token:
# secure: B/gWNOHhL5VYBLSIfvRA+rJmD9TYP6DcVgXi40AO23ypDUAe0ckpjkuE6TmqYlXS
# artifact: /ommprotocol-.*\.exe/
# draft: true
# prerelease: true
# on:
# appveyor_repo_tag: true
deploy:
provider: GitHub
release: OMMProtocol-$(APPVEYOR_REPO_TAG_NAME)
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: B/gWNOHhL5VYBLSIfvRA+rJmD9TYP6DcVgXi40AO23ypDUAe0ckpjkuE6TmqYlXS
artifact: /ommprotocol-.*\.exe/
draft: true
prerelease: true
on:
appveyor_repo_tag: true
43 changes: 20 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ matrix:
# https://github.com/travis-ci/travis-ci/issues/2778
# ...
fast_finish: true
allow_failures:
- os: osx

cache:
directories:
Expand Down Expand Up @@ -96,12 +94,11 @@ install:
anaconda -t $ANACONDA_TOKEN upload -u insilichem $HOME/miniconda/conda-bld/**/ommprotocol-*.tar.bz2;
fi;

# before_deploy:
# - conda install constructor;
# - conda remove --force constructor;
# - pip install -U --no-deps https://github.com/jaimergp/constructor/archive/jinja-env.zip;
# - ls -alh ${CONDA_PREFIX}/conda-bld/*;
# - constructor . ;
before_deploy:
- conda install constructor;
- conda remove --force constructor;
- pip install -U --no-deps https://github.com/jaimergp/constructor/archive/jinja-env.zip;
- constructor . ;

deploy:
# Deploy to PyPI
Expand All @@ -113,18 +110,18 @@ deploy:
on:
tags: true
condition: "$MYCONDAPY = 3.6 && $TRAVIS_OS_NAME = linux"
# Deploy to GitHub releases
# - provider: releases
# api_key:
# secure: fJMzrHDGscgyCcr93zMBqFmf6jJEeDJjUTFg75PVPOI5YpEGMmJujXZpyocIW9PVOWeso+gG7H0SQWBDEv8ptSGu43GO8nipFvSrJxcR+tQOP5Vosl/xvDLq+B4fPPf3ZvjQC70+lppjHubOY2UaPjnuOyuZvtcmEGZ+NGh3Oq5B31im9bgekhpzmvzmOt0i9uc/hKCH9m7QlRTEdVDAfxuuzILjqadBU2k70MiIvLqLkGcQzOv8jF0bqQOBUD81p49vzLK1Pjuv6j5s+GDd+Kb4jlwZ7EF+lfPGVZXob91wk1m4bIAlaj8wAlIXS/tqgM8qrlYJHHVb8arOYmt/KWawuGoSmpes7wqkJOX/BypFGDatqyWll+LkAuKU4uy9LkNvPBPiVOgw7FIScEH5r8tMLABhHWVcwbW6iG2NM1qDOdLQvbu6lR07AgQApkBtIT7ZEcKg2dehiIilV/5FZX68NDsenND+D90Gyu8WZZFS48uKkxH/ETAbMdBQRbgtaIIHFX+P07wrWeS9yQMSp4CKq9yQfz8FiWeQs7q/XixyUf/YjuhdF70sXb0WHdMEiAjyvpuYOxnyrS8aW2VZ54EAYgzrt3tPMcquvm4/rRqfPycx5BIdHYAn/BBbU2d4MSmCWy4/SOyGc5slCdw2xazg2gqElDcIlmV5J3wx+D8=
# file_glob: true
# file: ommprotocol-**.sh
# name: ommprotocol-${TRAVIS_TAG}
# body: ${TRAVIS_COMMIT_MESSAGE}
# draft: true
# prerelease: true
# skip_cleanup: true
# on:
# tags: true
# repo: insilichem/ommprotocol
# condition: "$MYCONDAPY = 3.6"
#Deploy to GitHub releases
- provider: releases
api_key:
secure: fJMzrHDGscgyCcr93zMBqFmf6jJEeDJjUTFg75PVPOI5YpEGMmJujXZpyocIW9PVOWeso+gG7H0SQWBDEv8ptSGu43GO8nipFvSrJxcR+tQOP5Vosl/xvDLq+B4fPPf3ZvjQC70+lppjHubOY2UaPjnuOyuZvtcmEGZ+NGh3Oq5B31im9bgekhpzmvzmOt0i9uc/hKCH9m7QlRTEdVDAfxuuzILjqadBU2k70MiIvLqLkGcQzOv8jF0bqQOBUD81p49vzLK1Pjuv6j5s+GDd+Kb4jlwZ7EF+lfPGVZXob91wk1m4bIAlaj8wAlIXS/tqgM8qrlYJHHVb8arOYmt/KWawuGoSmpes7wqkJOX/BypFGDatqyWll+LkAuKU4uy9LkNvPBPiVOgw7FIScEH5r8tMLABhHWVcwbW6iG2NM1qDOdLQvbu6lR07AgQApkBtIT7ZEcKg2dehiIilV/5FZX68NDsenND+D90Gyu8WZZFS48uKkxH/ETAbMdBQRbgtaIIHFX+P07wrWeS9yQMSp4CKq9yQfz8FiWeQs7q/XixyUf/YjuhdF70sXb0WHdMEiAjyvpuYOxnyrS8aW2VZ54EAYgzrt3tPMcquvm4/rRqfPycx5BIdHYAn/BBbU2d4MSmCWy4/SOyGc5slCdw2xazg2gqElDcIlmV5J3wx+D8=
file_glob: true
file: ommprotocol-**.sh
name: OMMProtocol-${TRAVIS_TAG}
body: ${TRAVIS_COMMIT_MESSAGE}
draft: true
prerelease: true
skip_cleanup: true
on:
tags: true
repo: insilichem/ommprotocol
condition: "$MYCONDAPY = 3.6"
6 changes: 4 additions & 2 deletions construct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ license_file: LICENSE
welcome_image: docs/img/logo.png [win]

channels:
- file://{{ environ['CONDA_PREFIX'] }}/conda-bld
- {{ 'file://' + environ['CONDA_PREFIX'] + '/conda-bld' }}
- https://conda.anaconda.org/insilichem
- https://conda.anaconda.org/omnia
- https://repo.continuum.io/pkgs/main/
- https://repo.continuum.io/pkgs/free/
- https://conda.anaconda.org/conda-forge [win]

conda_default_channels:
- https://conda.anaconda.org/insilichem
- https://conda.anaconda.org/omnia
- https://repo.continuum.io/pkgs/main/
- https://repo.continuum.io/pkgs/free/

ignore_duplicate_files: True

specs:
- python 3.6*
- nomkl
- nomkl [unix]
- ommprotocol
- conda

0 comments on commit b28b76b

Please sign in to comment.