These are chat archives for Fortran-FOSS-Programmers/General-Discussion

30th
Jun 2017
Stefano Zaghi
@szaghi
Jun 30 2017 12:14

Dear @/all

I have just realized that it is possible to use gfortran 7.1.0 on Travis CI by simply selecting dist: trusty as your container (it will use the container based on ubuntu 14.xy rather than 12.xy).

My best regards.

P.S. the following is extracted from one of my .travis.yml configuration files

language: generic

sudo: false
dist: trusty

cache:
  apt: true
  pip: true
  directories:
    - $HOME/.cache/pip
    - $HOME/.local

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gfortran-7
      - binutils 
...
install:
  - |
    if [[ ! -d "$HOME/.local/bin" ]]; then
      mkdir "$HOME/.local/bin"
    fi
  - export PATH="$HOME/.local/bin:$PATH"
  - export FC=/usr/bin/gfortran-7
  - ln -fs /usr/bin/gfortran-7 "$HOME/.local/bin/gfortran" && gfortran --version
  - ls -l /usr/bin/gfortran-7
  - ln -fs /usr/bin/gcov-7 "$HOME/.local/bin/gcov" && gcov --version
...
victorsndvg
@victorsndvg
Jun 30 2017 12:17
:+1: Thanks @szaghi