-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
62 lines (62 loc) · 2.66 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
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
julia:
- 1.9
notifications:
email: false
before_install:
## Install
- pwd
- sudo apt-get install libgconf2-dev libgconf-2-4 libgtk-3-0 libxss1 libnss3 libasound2 libx11-xcb1
- sudo apt-get install qt5-default qt5-image-formats-plugins qt5-qmake qt5-style-plugins
- sudo apt-get install libqt5widgets5 libqt5gui5 libqt5svg5-dev libxt6 libxrender1 libgl1-mesa-glx libqt5dbus5 libqt5network5 libqt5core5a
## Install scipy
- export PYTHON=/usr/bin/python
- python -m pip install --user numpy scipy
## download clawpack output examples
- cd $HOME
- echo $HOME
- FILE_NAME=clawpack_ci
- wget -O $HOME/${FILE_NAME}.tar.gz "https://www.dropbox.com/scl/fi/11d07yxpsobwd4vt9ekpm/clawpack_ci.tar.gz?rlkey=u2qvm9wd7ba08csw925s0vylp&dl=1"
- tar -zxvf ${FILE_NAME}.tar.gz
- export CLAW="${HOME}/${FILE_NAME}"
## Install GMT trunk
- sudo apt-get install build-essential cmake libcurl4-gnutls-dev libnetcdf-dev libgdal-dev gdal-bin libfftw3-dev libpcre3-dev liblapack-dev ghostscript
- git clone --depth=10 https://github.com/GenericMappingTools/gmt.git $HOME/gmt
- PATH="$HOME/gmt/bin:$PATH"
- echo 'export PATH="$HOME/gmt/bin:$PATH"' >>~/.bash_profile
- cd $HOME/gmt
#- git checkout 6.3.0
- gdalinfo --version
- wget http://www.soest.hawaii.edu/pwessel/gshhg/gshhg-gmt-2.3.7.tar.gz
- tar -xvzf gshhg-gmt-2.3.7.tar.gz
- wget http://www.soest.hawaii.edu/pwessel/dcw/dcw-gmt-1.1.4.tar.gz
- tar -xvzf dcw-gmt-1.1.4.tar.gz
- mkdir build
- cd build
- cmake --config Release .. -DSUPPORT_EXEC_IN_BINARY_DIR=TRUE -DGMT_ENABLE_OPENMP=ON -DCMAKE_INSTALL_PREFIX=$HOME/gmt -DGSHHG_ROOT=$HOME/gmt/gshhg-gmt-2.3.7
- make -j && make install
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/gmt/lib"
before_script:
### repo
- cd $HOME
- git clone --depth=50 --branch=${TRAVIS_BRANCH} https://github.com/hydrocoast/VisClaw.jl.git hydrocoast/VisClaw.jl
- cd hydrocoast/VisClaw.jl
### clone examples
- git clone https://github.com/hydrocoast/VisClawJuliaExamples.git example
### env
- export JULIA_PROJECT=@.
- julia --color=yes -e "using InteractiveUtils; versioninfo()"
### setenv libgmt.so
- echo "push!(Base.DL_LOAD_PATH, \"${HOME}/gmt/lib\")" >> ${TRAVIS_HOME}/julia/etc/julia/startup.jl
script:
- julia --check-bounds=yes --color=yes -e "using Pkg; Pkg.build(); Pkg.test(; coverage=true)"
after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
jobs:
allow_failures:
- julia: nightly
fast_finish: true