-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial feedstock commit with conda-smithy 2.3.0.
- Loading branch information
Travis-CI on github.com/conda-forge/staged-recipes
committed
Apr 27, 2017
0 parents
commit 36e9094
Showing
13 changed files
with
361 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,5 @@ | ||
* text=auto | ||
|
||
meta.yaml text eol=lf | ||
build.sh text eol=lf | ||
bld.bat text eol=crlf |
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,3 @@ | ||
*.pyc | ||
|
||
build_artefacts |
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,56 @@ | ||
# This file was generated automatically from conda-smithy. To update this configuration, | ||
# update the conda-forge.yml and/or the recipe/meta.yaml. | ||
|
||
language: generic | ||
|
||
os: osx | ||
osx_image: xcode6.4 | ||
|
||
env: | ||
matrix: | ||
|
||
- CONDA_R=3.3.2 | ||
|
||
|
||
before_install: | ||
# Fast finish the PR. | ||
- | | ||
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py | \ | ||
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1 | ||
# Remove homebrew. | ||
- | | ||
echo "" | ||
echo "Removing homebrew from Travis CI to avoid conflicts." | ||
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew | ||
chmod +x ~/uninstall_homebrew | ||
~/uninstall_homebrew -fq | ||
rm ~/uninstall_homebrew | ||
install: | ||
# Install Miniconda. | ||
- | | ||
echo "" | ||
echo "Installing a fresh version of Miniconda." | ||
MINICONDA_URL="https://repo.continuum.io/miniconda" | ||
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh" | ||
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}" | ||
bash $MINICONDA_FILE -b | ||
# Configure conda. | ||
- | | ||
echo "" | ||
echo "Configuring conda." | ||
source /Users/travis/miniconda3/bin/activate root | ||
conda config --remove channels defaults | ||
conda config --add channels defaults | ||
conda config --add channels conda-forge | ||
conda config --set show_channel_urls true | ||
conda install --yes --quiet conda-forge-build-setup | ||
source run_conda_forge_build_setup | ||
script: | ||
- conda build ./recipe | ||
|
||
- upload_or_check_non_existence ./recipe conda-forge --channel=main |
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,13 @@ | ||
BSD 3-clause license | ||
Copyright (c) 2015-2017, conda-forge | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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,103 @@ | ||
About r-rjava | ||
============= | ||
|
||
Home: http://www.rforge.net/rJava/ | ||
|
||
Package license: GPL-2 | ||
|
||
Feedstock license: BSD 3-Clause | ||
|
||
Summary: Low-level interface to Java VM very much like .C/.Call and friends. Allows creation of objects, calling methods and accessing fields. | ||
|
||
|
||
|
||
Current build status | ||
==================== | ||
|
||
Linux: [![Circle CI](https://circleci.com/gh/conda-forge/r-rjava-feedstock.svg?style=shield)](https://circleci.com/gh/conda-forge/r-rjava-feedstock) | ||
OSX: [![TravisCI](https://travis-ci.org/conda-forge/r-rjava-feedstock.svg?branch=master)](https://travis-ci.org/conda-forge/r-rjava-feedstock) | ||
Windows: ![](https://cdn.rawgit.com/conda-forge/conda-smithy/90845bba35bec53edac7a16638aa4d77217a3713/conda_smithy/static/disabled.svg) | ||
|
||
Current release info | ||
==================== | ||
Version: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/r-rjava/badges/version.svg)](https://anaconda.org/conda-forge/r-rjava) | ||
Downloads: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/r-rjava/badges/downloads.svg)](https://anaconda.org/conda-forge/r-rjava) | ||
|
||
Installing r-rjava | ||
================== | ||
|
||
Installing `r-rjava` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: | ||
|
||
``` | ||
conda config --add channels conda-forge | ||
``` | ||
|
||
Once the `conda-forge` channel has been enabled, `r-rjava` can be installed with: | ||
|
||
``` | ||
conda install r-rjava | ||
``` | ||
|
||
It is possible to list all of the versions of `r-rjava` available on your platform with: | ||
|
||
``` | ||
conda search r-rjava --channel conda-forge | ||
``` | ||
|
||
|
||
About conda-forge | ||
================= | ||
|
||
conda-forge is a community-led conda channel of installable packages. | ||
In order to provide high-quality builds, the process has been automated into the | ||
conda-forge GitHub organization. The conda-forge organization contains one repository | ||
for each of the installable packages. Such a repository is known as a *feedstock*. | ||
|
||
A feedstock is made up of a conda recipe (the instructions on what and how to build | ||
the package) and the necessary configurations for automatic building using freely | ||
available continuous integration services. Thanks to the awesome service provided by | ||
[CircleCI](https://circleci.com/), [AppVeyor](http://www.appveyor.com/) | ||
and [TravisCI](https://travis-ci.org/) it is possible to build and upload installable | ||
packages to the [conda-forge](https://anaconda.org/conda-forge) | ||
[Anaconda-Cloud](http://docs.anaconda.org/) channel for Linux, Windows and OSX respectively. | ||
|
||
To manage the continuous integration and simplify feedstock maintenance | ||
[conda-smithy](http://github.com/conda-forge/conda-smithy) has been developed. | ||
Using the ``conda-forge.yml`` within this repository, it is possible to re-render all of | ||
this feedstock's supporting files (e.g. the CI configuration files) with ``conda smithy rerender``. | ||
|
||
|
||
Terminology | ||
=========== | ||
|
||
**feedstock** - the conda recipe (raw material), supporting scripts and CI configuration. | ||
|
||
**conda-smithy** - the tool which helps orchestrate the feedstock. | ||
Its primary use is in the construction of the CI ``.yml`` files | ||
and simplify the management of *many* feedstocks. | ||
|
||
**conda-forge** - the place where the feedstock and smithy live and work to | ||
produce the finished article (built conda distributions) | ||
|
||
|
||
Updating r-rjava-feedstock | ||
========================== | ||
|
||
If you would like to improve the r-rjava recipe or build a new | ||
package version, please fork this repository and submit a PR. Upon submission, | ||
your changes will be run on the appropriate platforms to give the reviewer an | ||
opportunity to confirm that the changes result in a successful build. Once | ||
merged, the recipe will be re-built and uploaded automatically to the | ||
`conda-forge` channel, whereupon the built conda packages will be available for | ||
everybody to install and use from the `conda-forge` channel. | ||
Note that all branches in the conda-forge/r-rjava-feedstock are | ||
immediately built and any created packages are uploaded, so PRs should be based | ||
on branches in forks and branches in the main repository should only be used to | ||
build distinct package versions. | ||
|
||
In order to produce a uniquely identifiable distribution: | ||
* If the version of a package **is not** being increased, please add or increase | ||
the [``build/number``](http://conda.pydata.org/docs/building/meta-yaml.html#build-number-and-string). | ||
* If the version of a package **is** being increased, please remember to return | ||
the [``build/number``](http://conda.pydata.org/docs/building/meta-yaml.html#build-number-and-string) | ||
back to 0. |
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,27 @@ | ||
#!/bin/bash | ||
|
||
|
||
# Update PR refs for testing. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
FETCH_REFS="${FETCH_REFS} +refs/pull/${CIRCLE_PR_NUMBER}/head:pr/${CIRCLE_PR_NUMBER}/head" | ||
FETCH_REFS="${FETCH_REFS} +refs/pull/${CIRCLE_PR_NUMBER}/merge:pr/${CIRCLE_PR_NUMBER}/merge" | ||
fi | ||
|
||
# Retrieve the refs. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
git fetch -u origin ${FETCH_REFS} | ||
fi | ||
|
||
# Checkout the PR merge ref. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
git checkout -qf "pr/${CIRCLE_PR_NUMBER}/merge" | ||
fi | ||
|
||
# Check for merge conflicts. | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
git branch --merged | grep "pr/${CIRCLE_PR_NUMBER}/head" > /dev/null | ||
fi |
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,4 @@ | ||
#!/bin/bash | ||
|
||
curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py | \ | ||
python - -v --ci "circle" "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" "${CIRCLE_BUILD_NUM}" "${CIRCLE_PR_NUMBER}" |
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,73 @@ | ||
#!/usr/bin/env bash | ||
|
||
# PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here | ||
# will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent | ||
# changes to this script, consider a proposal to conda-smithy so that other feedstocks can also | ||
# benefit from the improvement. | ||
|
||
FEEDSTOCK_ROOT=$(cd "$(dirname "$0")/.."; pwd;) | ||
RECIPE_ROOT=$FEEDSTOCK_ROOT/recipe | ||
|
||
docker info | ||
|
||
config=$(cat <<CONDARC | ||
channels: | ||
- conda-forge | ||
- defaults | ||
conda-build: | ||
root-dir: /feedstock_root/build_artefacts | ||
show_channel_urls: true | ||
CONDARC | ||
) | ||
|
||
# In order for the conda-build process in the container to write to the mounted | ||
# volumes, we need to run with the same id as the host machine, which is | ||
# normally the owner of the mounted volumes, or at least has write permission | ||
HOST_USER_ID=$(id -u) | ||
# Check if docker-machine is being used (normally on OSX) and get the uid from | ||
# the VM | ||
if hash docker-machine 2> /dev/null && docker-machine active > /dev/null; then | ||
HOST_USER_ID=$(docker-machine ssh $(docker-machine active) id -u) | ||
fi | ||
|
||
rm -f "$FEEDSTOCK_ROOT/build_artefacts/conda-forge-build-done" | ||
|
||
cat << EOF | docker run -i \ | ||
-v "${RECIPE_ROOT}":/recipe_root \ | ||
-v "${FEEDSTOCK_ROOT}":/feedstock_root \ | ||
-e HOST_USER_ID="${HOST_USER_ID}" \ | ||
-a stdin -a stdout -a stderr \ | ||
condaforge/linux-anvil \ | ||
bash || exit 1 | ||
set -e | ||
set +x | ||
export BINSTAR_TOKEN=${BINSTAR_TOKEN} | ||
set -x | ||
export PYTHONUNBUFFERED=1 | ||
echo "$config" > ~/.condarc | ||
# A lock sometimes occurs with incomplete builds. The lock file is stored in build_artefacts. | ||
conda clean --lock | ||
conda install --yes --quiet conda-forge-build-setup | ||
source run_conda_forge_build_setup | ||
# Embarking on 1 case(s). | ||
set -x | ||
export CONDA_R=3.3.2 | ||
set +x | ||
conda build /recipe_root --quiet || exit 1 | ||
upload_or_check_non_existence /recipe_root conda-forge --channel=main || exit 1 | ||
touch /feedstock_root/build_artefacts/conda-forge-build-done | ||
EOF | ||
|
||
# double-check that the build got to the end | ||
# see https://github.com/conda-forge/conda-smithy/pull/337 | ||
# for a possible fix | ||
set -x | ||
test -f "$FEEDSTOCK_ROOT/build_artefacts/conda-forge-build-done" || exit 1 |
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,19 @@ | ||
checkout: | ||
post: | ||
- ./ci_support/fast_finish_ci_pr_build.sh | ||
- ./ci_support/checkout_merge_commit.sh | ||
|
||
machine: | ||
services: | ||
- docker | ||
|
||
dependencies: | ||
# Note, we used to use the naive caching of docker images, but found that it was quicker | ||
# just to pull each time. #rollondockercaching | ||
override: | ||
- docker pull condaforge/linux-anvil | ||
|
||
test: | ||
override: | ||
# Run, test and (if we have a BINSTAR_TOKEN) upload the distributions. | ||
- ./ci_support/run_docker_build.sh |
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 @@ | ||
[] |
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,2 @@ | ||
"%R%" CMD INSTALL --build . | ||
if errorlevel 1 exit 1 |
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,3 @@ | ||
#!/bin/bash | ||
|
||
$R CMD INSTALL --build . |
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,52 @@ | ||
{% set version = '0.9-8' %} | ||
|
||
{% set posix = 'm2-' if win else '' %} | ||
{% set native = 'm2w64-' if win else '' %} | ||
|
||
package: | ||
name: r-rjava | ||
version: {{ version|replace("-", "_") }} | ||
|
||
source: | ||
fn: rJava_{{ version }}.tar.gz | ||
url: | ||
- https://cran.r-project.org/src/contrib/rJava_{{ version }}.tar.gz | ||
- https://cran.r-project.org/src/contrib/Archive/rJava/rJava_{{ version }}.tar.gz | ||
sha256: dada5e031414da54eb80b9024d51866c20b92d41d68da65789fe0130bc54bd8a | ||
|
||
build: | ||
number: 0 | ||
skip: true # [win] | ||
rpaths: | ||
- lib/R/lib/ | ||
- lib/ | ||
|
||
requirements: | ||
build: | ||
- r-base | ||
- posix # [win] | ||
- {{native}}toolchain # [win] | ||
- gcc # [not win] | ||
- openjdk | ||
|
||
run: | ||
- r-base | ||
- openjdk | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
test: | ||
commands: | ||
- $R -e "library('rJava')" # [not win] | ||
- "\"%R%\" -e \"library('rJava')\"" # [win] | ||
|
||
about: | ||
home: http://www.rforge.net/rJava/ | ||
license: GPL-2 | ||
summary: Low-level interface to Java VM very much like .C/.Call and friends. Allows creation | ||
of objects, calling methods and accessing fields. | ||
license_family: GPL2 | ||
|
||
extra: | ||
recipe-maintainers: | ||
- johanneskoester | ||
- bgruening | ||
- sodre |
What do you intend to do about 32-bit here @sodre?