-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
55 lines (50 loc) · 1.49 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
linux: &linux
os: linux
dist: bionic
language: python
env: CC=gcc-7 CXX=g++-7
osx: &osx
os: osx
language: generic
matrix:
include:
- <<: *linux
python: "3.6"
- <<: *linux
python: "3.7"
- <<: *osx
osx_image: xcode11.3
env: pyv="3.6.10"
- <<: *osx
osx_image: xcode11.3
env: pyv="3.7.6"
- <<: *linux #test conda
language: generic
env: test_conda="1" pyv="3.6"
- <<: *linux #test conda
language: generic
env: test_conda="1" pyv="3.7"
- <<: *osx #test conda
osx_image: xcode11.3
env: test_conda="1" pyv="3.6"
- <<: *osx #test conda
osx_image: xcode11.3
env: test_conda="1" pyv="3.7"
before_install:
- chmod +x .travis/install.sh
- ./.travis/install.sh
- git clone https://github.com/Chrismarsh/Windmapper.git
- (cd Windmapper && git checkout $TRAVIS_BRANCH)
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$test_conda" != "1" ]; then eval "$(pyenv init -)"; pyenv activate Windmapper ; fi
- if [ "$test_conda" = "1" ]; then source $HOME/conda/bin/activate; conda activate Windmapper ; fi
- pip install --upgrade pip
- pip install ./Windmapper/
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$test_conda" != "1" ]; then eval "$(pyenv init -)";pyenv activate Windmapper ; fi
- if [ "$test_conda" = "1" ]; then source $HOME/conda/bin/activate; conda activate Windmapper ; fi
deploy:
provider: script
script: bash ./.travis/deploy.sh
on:
tags: true