forked from AndrewAnnex/SpiceyPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (54 loc) · 1.97 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
language: python
sudo: false
matrix:
include:
- os: linux
python: 3.6
- os: linux
python: 3.7
- os: linux
python: 3.8
- os: linux
python: 3.8
env: CSPICE_SRC_DIR="/tmp/cspice"
- os: linux
python: 3.8
env: CSPICE_SHARED_LIB="/tmp/cspice/lib/libcspice.so"
- os: osx
language: generic
env: PYVERSION='3.6.2'
- os: osx
language: generic
env: PYVERSION='3.7.0'
- os: osx
language: generic
env: PYVERSION='3.8.0'
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated | grep -q pyenv && brew upgrade pyenv || true; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then eval "$(pyenv init -)"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then pyenv install $PYVERSION; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then pyenv global $PYVERSION; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then pyenv versions; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then python --version; fi
- pip install -U pip
- pip install -U wheel
- pip install twine
- pip install -r requirements.txt
- if ! [ -z "$CSPICE_SRC_DIR" ]; then wget -O - https://naif.jpl.nasa.gov/pub/naif/toolkit/C/PC_Linux_GCC_64bit/packages/cspice.tar.Z | gunzip -c | tar xC /tmp/ ; fi
- if ! [ -z "$CSPICE_SHARED_LIB"]; then mkdir -p /tmp/cspice/ && wget -O - https://anaconda.org/conda-forge/cspice/66/download/linux-64/cspice-66-h516909a_1009.tar.bz2 | tar xjC /tmp/cspice/ ; fi
install:
- python setup.py install
script:
- coverage run --source spiceypy -m pytest --pyargs spiceypy
after_success:
- codecov
deploy:
provider: pypi
user: andrewannex
password:
secure: YXA8LYIyAZ5HA2In4H/vUaCaVow9HbvKNT/TTT9OaH91Fszspr1uFo9mRQLNJlBViGgy2SaqNQITzlRdFyIcDstqRGPDQUw3xNIKvZ7YuHIzG1TVWNVpJsZf2ha1+JxozPTS2c2tlrS/LR7N4hYVtLOipaYAK2ucmB8sDu4dkws=
on:
tags: true
branch: main
repo: AndrewAnnex/SpiceyPy