diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a435967 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,51 @@ +language: python + +python: + - 3.6 + +sudo: false + +cache: + apt: true + pip: true + +matrix: + include: + - os: linux + dist: trusty + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gfortran-7 + - python-pip + env: + - FC=gfortran-7 + - os: linux + dist: trusty + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gfortran-8 + - python-pip + env: + - FC=gfortran-8 + - os: linux + dist: trusty + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gfortran-9 + - python-pip + env: + - FC=gfortran-9 + +script: + - ${FC} --version + - cd tests + - make FC=${FC} diff --git a/tests/Makefile b/tests/Makefile index b8ce7fd..107aa4f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -69,10 +69,10 @@ forpy_mod.o: ../forpy_mod.F90 $(FC) $(FFLAGS) -c -o $@ $< ../forpy_mod.F90: ../forpy_mod.fypp - python2 ../fypp.py ../forpy_mod.fypp ../forpy_mod.F90 + $(PYTHON) ../fypp.py ../forpy_mod.fypp ../forpy_mod.F90 %.F90: %.fypp - python2 ../fypp.py $< $@ + $(PYTHON) ../fypp.py $< $@ .PHONY: clean clean: