Skip to content

Commit

Permalink
task: use a more modern travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Jul 22, 2019
1 parent dbcdadd commit fdd545d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 43 deletions.
62 changes: 21 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
language: julia

branches:
only:
- master
Expand All @@ -8,18 +6,25 @@ branches:
- /^release\/.*$/ # release branches
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags

sudo: false
language: julia

os:
- linux

julia:
- 1.0
- 1.1
- 1.2

notifications:
email: true
email: false

sudo: false

before_script:
- echo "[mysqld]" > $HOME/.my.cnf
- echo "secure_file_priv = \"\" ">> $HOME/.my.cnf
- echo "default_authentication_plugin = mysql_native_password" >> $HOME/.my.cnf
- echo "local_infile = 1" >> $HOME/.my.cnf
addons:
mariadb: '10.4'

script:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then . ./ci/travis/before_install-osx.sh; fi
- export OLD_PATH=$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`mariadb_config --libs | cut -d ' ' -f1 | sed 's/-L//'`
Expand All @@ -30,47 +35,22 @@ after_success:
- julia -e 'import Pkg; Pkg.instantiate(); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

jobs:
include:
- stage: "Tests and Examples"
os: linux
julia: 1.1
env: GROUP=Test
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'import Pkg;
Pkg.build();
Pkg.test("BioMedQuery"; coverage=true);'
- # continue
- stage: tests
os: osx
julia: 1.1
env: GROUP=Test
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'import Pkg;
Pkg.build();
Pkg.test("BioMedQuery"; coverage=false);'
- # continue
os: linux
julia: 1.0
env: GROUP=Test
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'import Pkg;
Pkg.build();
Pkg.test("BioMedQuery"; coverage=true);'
- # continue
- julia -e 'import Pkg; Pkg.build(); Pkg.test(coverage=false);'
after_success: skip
- stage: examples
os: linux
julia: 1.1
env: GROUP=Examples
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'import Pkg;
Pkg.instantiate();
include(joinpath(@__DIR__,"examples","runexamples.jl"))'
- stage: "Deploy Documentation"
- julia -e 'import Pkg; Pkg.instantiate(); include(joinpath(@__DIR__, "examples", "runexamples.jl"))'
- stage: deploy documentation
julia: 1.1
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
- julia -e 'import Pkg; Pkg.instantiate(); Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))'
after_success: skip
4 changes: 2 additions & 2 deletions ci/travis/before_install-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ echo Running before_install-osx.sh...
echo "------------------------------------------"

# Install and start MySQL on OSX
echo ">>> brew install mysql"
echo ">>> brew install mariadb"
brew update
brew install mysql
brew install mariadb
echo ">>> mysql.server start"
mysql.server start

0 comments on commit fdd545d

Please sign in to comment.