-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
63 lines (53 loc) · 1.69 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
# This is the travis-ci configuration file for gamma-sky.net
# Some notes are at the end of this file.
sudo: required
dist: trusty
language: node_js
node_js:
- '6'
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=3.6 pip
- source activate test-environment
- conda config --add channels conda-forge
- conda install cython numpy pandas click astropy healpy
- pip install git+https://github.com/gammapy/gammapy.git#egg=gammapy
- conda install -c conda-forge healpy
- pip install git+https://github.com/hipspy/hips.git#egg=hips
before_script:
- npm install -g @angular/cli
- npm install -g karma
- npm install
script:
- python make.py fetch all
- python make.py test-dataset
- ng build
- ng e2e
- karma start config/karma.conf.js --single-run
# We use conda to install the Python dependencies
# following the instructions here:
# http://conda.pydata.org/docs/travis.html#using-conda-with-travis-ci
#
# And we install Node and the NPM dependencies
# following the instructions here:
# https://medium.com/from-the-couch/angular-2-with-travis-ci-922040e01937#.4mevdjoqc
# See also:
# https://github.com/antonybudianto/angular2-starter/blob/master/.travis.yml
# https://github.com/mgechev/angular2-seed/blob/master/.travis.yml