Skip to content

Commit

Permalink
CircleCI config
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookresearch#167

Differential Revision: D17943315

Pulled By: kittipatv

fbshipit-source-id: 1dff954dc821bc33e62fd6dafac8460d08c2b930
  • Loading branch information
kittipatv authored and facebook-github-bot committed Oct 15, 2019
1 parent 8dba757 commit d9f654a
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: 2.1

# How to test the Linux jobs:
# - Install CircleCI local CLI: https://circleci.com/docs/2.0/local-cli/
# - circleci config process .circleci/config.yml > gen.yml && circleci local execute -c gen.yml --job binary_linux_conda_py3.7_cpu
# - Replace binary_linux_conda_py3.7_cpu with the name of the job you want to test.
# Job names are 'name:' key.

commands:
checkout_merge:
description: "checkout merge branch"
steps:
- checkout
- run:
name: Checkout merge branch
command: |
set -ex
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$BRANCH" != "master" ]]; then
git merge origin/master
fi
binary_common: &binary_common
parameters:
docker_image:
description: "Docker image"
type: string
environment:
DOCKER_IMAGE: << parameters.docker_image >>

jobs:
binary_linux_conda:
<<: *binary_common
docker:
- image: << parameters.docker_image >>
resource_class: gpu.medium
steps:
- checkout_merge
- run: .jenkins/build.sh

workflows:
build:
jobs:
- binary_linux_conda:
name: binary_linux_conda_py3.7_cpu
docker_image: kittipatv/reagent:cpu
- binary_linux_conda:
name: binary_linux_conda_py3.7_cu92
docker_image: kittipatv/reagent:cuda
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Project files
.vscode

# CircleCI
gen.yml

# Test data
cartpole_discrete
cartpole_discrete_timeline
Expand Down Expand Up @@ -126,7 +129,6 @@ ENV/
ml/rl/thrift/__init__.py
ml/rl/thrift/core/


# Docusaurus
.DS_Store

Expand Down
2 changes: 0 additions & 2 deletions .jenkins/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export PATH=${HOME}/miniconda/bin:$PATH

pip uninstall -y horizon

thrift --gen py --out . ml/rl/thrift/core.thrift

# Installing from current directory, any update will be reflected system-wide
pip install -e .
pytest
Expand Down
1 change: 0 additions & 1 deletion ml/rl/preprocessing/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ml.rl.preprocessing.identify_types import DEFAULT_MAX_UNIQUE_ENUM, FEATURE_TYPES
from scipy import stats
from scipy.stats.mstats import mquantiles
from thrift.transport.TTransport import TMemoryBuffer


logger = logging.getLogger(__name__)
Expand Down

0 comments on commit d9f654a

Please sign in to comment.