-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
52 lines (46 loc) · 1.73 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
language: generic
dist: bionic
matrix:
include:
- env: DJANGO_SETTINGS_MODULE=xasdb.settings_sqlite_dev
- env: DJANGO_SETTINGS_MODULE=xasdb.settings_mariadb_dev
addons:
mariadb: '10.4'
sudo: true
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
- conda update -q conda
- conda install django bokeh sqlparse
- conda install -c conda-forge xraylib habanero Pillow django-cleanup
# install xdi...
- pushd $HOME
- git clone -b XDI-autotools https://github.com/tschoonj/XAS-Data-Interchange
- cd XAS-Data-Interchange/lib
- autoreconf -fi
- ./configure --prefix=$HOME/miniconda
- make && make install
- cd ../languages/python
- python setup.py install
- popd
script:
- |
if test -n "$TRAVIS_MARIADB_VERSION" ; then
sudo mysql -u root -e "CREATE USER 'xas_db_usr'@'localhost' IDENTIFIED BY 'BS4_password';"
sudo mysql -u root -e "GRANT ALL ON test_xasdb.* TO 'xas_db_usr'@'localhost'"
export XASDB_MARIADB_PASSWORD=BS4_password
conda install -c conda-forge -c defaults mysqlclient
fi
- cd xasdb ; python manage.py test -v 2
branches:
only:
- master
notifications:
email:
recipients:
on_success: never
on_failure: always