This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
73 lines (57 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
language: python
python:
# Don't test against 2.6. We use apt-get to install many dependencies, but
# Python system packages only include Python 2.7 libraries on Ubuntu 12.04.
- "2.7"
env:
global:
- WASP10_DATA=$HOME/WASP10_data
- secure: "EEA1YcB7rIBu5jQipl89lGxmRvk1IZ158i0J1PC1L7tFaq6hK7g1nf4rJWjrwYBS4gZT8z1fA8eiP3KJ8hRmh4S9cYq6FD/PpwknFo2QysoUrS2d2XxK92nfJSkjJ7Gx5F1fVqtqITda5uJwhEVGZdgkCFv5JGvJcdGWHZVyNAc="
virtualenv:
system_site_packages: true
git:
depth: false
cache:
directories:
- $WASP10_DATA
before_install:
- sudo apt-get update
- sudo apt-get install -y alien realpath
- sudo apt-get install -y git python-pip csh realpath
- sudo apt-get build-dep -y python-matplotlib python-scipy
- sudo easy_install -U distribute
- sudo pip install "numpy>=1.7.1"
- sudo pip install -r pre-requirements.txt
# 'travis_wait': avoid timeout during SciPy installation
- travis_wait 45 sudo pip install -r requirements.txt
# Install IRAF and SExtractor
- sudo ./ci/travis-setup.sh
- python ./setup.py
- export iraf=/iraf/iraf/
- export IRAFARCH=linux64
- export PATH=$(pwd):$PATH
install: true
jobs:
include:
# Download integration test data to the cached directory.
- stage: Setup
name: "Prepare test data"
script: ./test/integration/wasp10b-download.sh $WASP10_DATA
- stage: Tests
name: "Unit Tests"
script: ./run_tests.py
# Exercise the multiprocessing logic of `photometry` and `diffphot`.
# The goal is to make sure that light cuves computed in parallel are
# absolutely independent of each other.
- script: NCORES=1 ./test/integration/wasp10b.py
name: "Integration Test (cores = 1)"
- script: NCORES=2 ./test/integration/wasp10b.py
name: "Integration Test (cores = 2)"
- script: NCORES=3 ./test/integration/wasp10b.py
name: "Integration Test (cores = 3)"
- script: NCORES=4 ./test/integration/wasp10b.py
name: "Integration Test (cores = 4)"
notifications:
email:
on_success: change
on_failure: change