Skip to content

Commit

Permalink
Add Travis configuration. (#1)
Browse files Browse the repository at this point in the history
Add Travis configuration.
  • Loading branch information
GunnarFarneback authored Oct 29, 2020
1 parent fbb3d9e commit 497486d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
language: julia
os:
- linux
- osx
- windows
julia:
- 1.3
- 1.4
- 1.5
- nightly
addons:
apt:
sources:
- ubuntu-toolchain-r-test
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ $TRAVIS_CPU_ARCH != "arm64" ]; then sudo apt-get install gcc-8 gcc-8-multilib linux-libc-dev linux-headers-generic; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ $TRAVIS_CPU_ARCH != "arm64" ]; then sudo ln -s /usr/bin/gcc-8 /usr/local/bin/gcc; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ $TRAVIS_CPU_ARCH != "arm64" ]; then sudo ln -s /usr/include/asm-generic /usr/include/asm; fi
- which gcc
- gcc --version
arch:
- amd64
- arm64
jobs:
fast_finish: true
allow_failures:
# - julia: nightly
exclude:
- os: osx
arch: arm64
- os: windows
arch: arm64
branches:
only:
- master
- /^release-.*/
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags
notifications:
email: false
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ end

cfunctions_path = abspath(dirname(@__DIR__), "src", "julia_cfunctions.jl")

# `VERSION` is usually not the same as this for nightly builds.
# TODO: Find out whether there's some more convenient way to get
# exactly the same string as this `ccall`.
version_string = unsafe_string(ccall(:jl_ver_string, Ptr{Cchar}, ()))
expected_stdout =
"""
Julia version $(VERSION)
Julia version $(version_string)
0.5
fibonacci(10) = 55
"""
Expand Down

0 comments on commit 497486d

Please sign in to comment.