Skip to content

Commit 7bffe0b

Browse files
authored
Adding IN_CI=1 since the IN_CIRCLECI flag will be deprecated soon. (#14)
* Adding IN_CI=1 in anticipation of newer PyTorch changes that deprecates IN_CIRCLECI argument * fix adding environment variable for docker run
1 parent 84dbc54 commit 7bffe0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
export PATH=$HOME/miniconda/bin:$PATH
9797
conda install -y -c ${PYTORCH_CHANNEL} cpuonly future hypothesis ninja numpy pillow pytorch pyyaml psutil protobuf six
9898
conda install -y -c conda-forge openmp unittest-xml-reporting
99-
IN_CIRCLECI=1 make -C compat-tests macos-compat
99+
IN_CIRCLECI=1 IN_CI=1 make -C compat-tests macos-compat
100100
- store_test_results:
101101
path: pytorch/test/test-reports
102102

compat-tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DOCKER_BUILD = docker build \
1515
--build-arg PYTORCH_REF=$(PYTORCH_REF) \
1616
--build-arg PYTORCH_CHANNEL=$(PYTORCH_CHANNEL) \
1717
.
18-
DOCKER_RUN = set -o pipefail; docker run --rm -it -e IN_CIRCLECI=1 -w /pytorch/test -v "$(PWD)/test-reports:/pytorch/test/test-reports" compat-test:$@
18+
DOCKER_RUN = set -o pipefail; docker run --rm -it -e IN_CIRCLECI=1 -e IN_CI=1 -w /pytorch/test -v "$(PWD)/test-reports:/pytorch/test/test-reports" compat-test:$@
1919

2020
.PHONY: ubuntu-16.04
2121
ubuntu-16.04: BASE_IMAGE := ubuntu:16.04

0 commit comments

Comments
 (0)