-
Notifications
You must be signed in to change notification settings - Fork 9
/
circle.yml
40 lines (36 loc) · 1.3 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
machine:
environment:
PATH: /home/ubuntu/miniconda2/bin:$PATH
dependencies:
pre:
- sudo apt-get install -y git tree
# Get rid of existing virtualenvs on circle ci as they conflict with conda.
# Trick found here:
# https://discuss.circleci.com/t/disable-autodetection-of-project-or-application-of-python-venv/235/10
- cd && rm -rf ~/.pyenv && rm -rf ~/virtualenvs
override:
# Moving to nilearn directory before performing the installation.
- cd ~/yhat-client
- source ci/install.sh
- ci/create-env.sh 2.7
- source activate test-env-2.7 && python setup.py install
- ci/create-env.sh 3.5
- source activate test-env-3.5 && python setup.py install
- pip install awscli
test:
override:
- source activate test-env-2.7 && cd tests/ && python -m unittest discover
- source activate test-env-3.5 && cd tests/ && python -m unittest discover
deployment:
rc:
branch: master
commands:
- ./ci/generate-pypi-config.sh > ~/.pypirc
- ./ci/release-to-pypi.sh
- source activate test-env-2.7 && ./ci/build-conda-package.sh local rc
release:
tag: /v\d+\.\d+\.\d+/
commands:
- ./ci/generate-pypi-config.sh > ~/.pypirc
- ./ci/release-to-pypi.sh upload
- source activate test-env-2.7 && ./ci/build-conda-package.sh upload