forked from quiltdata/quilt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
44 lines (38 loc) · 1.83 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
41
42
43
44
machine:
xcode:
version: 9.0
environment:
QUILT_SERVER_CONFIG: dev_config.py
FLASK_APP: quilt_server
FLASK_DEBUG: 1
TEST_COMPILER: python -m pytest compiler
pre:
- echo "Creating python environments"
- curl -o mconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
- chmod +x mconda.sh
- ./mconda.sh -b -p $HOME/miniconda
- |
for version in 2.7.10 3.5.1 3.6.1
do
export PATH="$HOME/miniconda/bin:$PATH" && conda create --yes -n quilt_env$version python=$version pip;
export PATH="$HOME/miniconda/bin:$PATH" && source activate quilt_env$version && pip install pytest --user && source deactivate quilt_env$version
done
dependencies:
post:
- echo "Installing compiler to each environment"
- |
for version in 2.7.10 3.5.1 3.6.1
do
export PATH="$HOME/miniconda/bin:$PATH" && source activate quilt_env$version && pip install ./compiler['tests'] --user && source deactivate quilt_env$version;
done
test:
override:
# Avoiding loop here, so that each test shown in separate tab in circle-ci
- echo "Running Compiler Test with 2.7.10"
- export PATH="$HOME/miniconda/bin:$PATH" && source activate quilt_env2.7.10 && $TEST_COMPILER && source deactivate quilt_env2.7.10;
#- echo "Running Compiler Test with 3.4.1"
#- export PATH="$HOME/miniconda/bin:$PATH" && source activate quilt_env3.4.1 && $TEST_COMPILER && source deactivate quilt_env3.4.1;
- echo "Running Compiler Test with 3.5.1"
- export PATH="$HOME/miniconda/bin:$PATH" && source activate quilt_env3.5.1 && $TEST_COMPILER && source deactivate quilt_env3.5.1;
- echo "Running Compiler Test with 3.6.1"
- export PATH="$HOME/miniconda/bin:$PATH" && source activate quilt_env3.6.1 && $TEST_COMPILER && source deactivate quilt_env3.6.1;