-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
69 lines (63 loc) · 1.55 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
language: python
sudo: false
matrix:
include:
- os: linux
compiler: gcc
addons: &gcc49
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9', 'gcc-4.9', 'gfortran-4.9']
env:
- CXX='g++-4.9'
- CC='gcc-4.9'
- FC='gfortran-4.9'
python: 2.7
- os: linux
compiler: gcc
addons: &gcc49
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9', 'gcc-4.9', 'gfortran-4.9']
env:
- CXX='g++-4.9'
- CC='gcc-4.9'
- FC='gfortran-4.9'
python: 3.6
- os: osx
osx_image: xcode7.3
compiler: gcc
sudo: required
language: generic
install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
# manually install python on osx
brew update &> /dev/null
brew install python3
brew reinstall gcc
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt --upgrade
fi
- pip install -r requirements.txt --upgrade
- python --version
before_script:
- pycodestyle account/
- pycodestyle test/test.py
script:
- mkdir build
- cd build
- cmake ..
- make
- make test
- cd ..
- ACCOUNT_LIBRARY_DIR=$PWD/build/lib ACCOUNT_INCLUDE_DIR=$PWD/account PYTHONPATH=$PWD pytest -vv test/test.py
- mkdir test-setup-script
- cd test-setup-script
- virtualenv venv
- source venv/bin/activate
- pip install git+https://github.com/bast/context-api-example.git
- python -c 'import account'
notifications:
email: false