-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwercker.yml
64 lines (54 loc) · 1.82 KB
/
wercker.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
box: flenter/multi-python
build:
# The steps that will be executed on build
steps:
- install-packages:
packages: libfreetype6-dev
- script:
name: install virtualenv
code: |
sudo pip install virtualenv
# Create a virtual environment, now we only use 2.7.5 (not ubuntu's own
# python). And activate
- script:
name: setup/activate virtualenv using 2.7.5
code: |
virtualenv -p /usr/local/bin/python2 /tmp/venv27
source /tmp/venv27/bin/activate
# run pip install with caching enabled.
- script:
name: pip install
code: |
pip install --download-cache=$WERCKER_CACHE_DIR -r requirements.txt
# run your tests here... I only echo some info
- script:
name: echo python information 2.7
code: |
echo "python version $(python --version) running"
echo "pip version $(pip --version) running"
# step out of our virtual environment
- script:
name: deactivate virtualenv
code: |
deactivate
# create a virtual environment for 3.3.3
- script:
name: setup/activate virtualenv using 3.3.3
code: |
virtualenv -p /usr/local/bin/python3 /tmp/venv33
source /tmp/venv33/bin/activate
- script:
name: pip install
code: |
pip install --download-cache=$WERCKER_CACHE_DIR -r requirements.txt
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo python information 3.3.3
code: |
echo "python version $(python --version) running"
echo "pip version $(pip --version) running"
- script:
name: deactivate virtualenv
code: |
deactivate