-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
78 lines (61 loc) · 2.03 KB
/
.travis.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Config file for automatic testing at travis-ci.org
#
# https://docs.travis-ci.com/user/languages/python/
# https://docs.travis-ci.com/user/reference/overview/
# https://docs.travis-ci.com/user/environment-variables/
#
# Note:
# We currently can't check the boot process with different python versions :(
# The created virtualenv doesn't work: see:
# https://github.com/travis-ci/travis-ci/issues/8589
#
# setup script will be created in /home/travis/virtualenv/python3.6.4/bin/
# and not in created virtualenv in /home/travis/Bootstrap-Env/bin/
# e.g.:
# https://travis-ci.org/jedie/PyLucid/jobs/346286453#L580-L598
#
sudo: false
dist: trusty
language: python
python:
- "3.6"
matrix:
include:
- env: BOOT_MODE=boot
- env: BOOT_MODE=boot_developer
branches:
only:
- master
before_install:
- ls /opt/python/
- /opt/python/3.6/bin/python --version
install:
- echo $BOOT_MODE
# boot_bootstrap_env.py check if it's running in a activates venv:
- unset VIRTUAL_ENV
# Work-a-round for #8589 (see above):
# We use '/opt/python/3.6/bin/python' and not the python from PATH.
- /opt/python/3.6/bin/python bootstrap_env/boot_bootstrap_env.py $BOOT_MODE ~/Bootstrap-Env
- cd ~/Bootstrap-Env
- ls -la bin
- source bin/activate
- mkdir -p ~/Bootstrap-Env/src/
- cp -Rfvp ${TRAVIS_BUILD_DIR} ~/Bootstrap-Env/src/
# The PyPi package and git repro named "bootstrap_env"
# But pip will change the name to "bootstrap-env"
- if [ $BOOT_MODE == "boot" ]; then mv ~/Bootstrap-Env/src/bootstrap_env ~/Bootstrap-Env/src/bootstrap-env; fi
- cd ~/Bootstrap-Env/src/bootstrap-env
- pip install -e .
# install bootstrap_env/requirements/test_requirements.txt
- bootstrap_env_admin.py install_test_requirements
script:
- cd ~/Bootstrap-Env/src/bootstrap-env
- ls -la ~/Bootstrap-Env/bin
- bootstrap_env_admin.py pip_freeze
- bootstrap_env_admin.py pytest
after_success:
# https://github.com/codecov/codecov-bash
- bash <(curl -s https://codecov.io/bash)
- coveralls
after_script:
- rm -Rf ~/Bootstrap-Env