From 28c2120a300f0003cbe6977047d933529f9a7f85 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 30 Dec 2015 14:05:25 -0500 Subject: Add .travis.yml for automated testing --- .travis.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .travis.yml (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..978e6b48 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: c + +os: + - linux + - osx + +compiler: + - clang + - gcc + +# when https://github.com/travis-ci/apt-package-whitelist/issues/792 is closed, use the container-based infrastructure +#sudo: false +#addons: +# apt: +# packages: +# - mlton + +# brew install mlton doesn't seem to work (https://github.com/travis-ci/travis-ci/issues/5379) +matrix: + allow_failures: + - os: osx + +before_install: + - if command -v apt-get &>/dev/null; then sudo apt-get update -qq; fi + - if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton; fi + - if command -v brew &>/dev/null; then brew update; fi + - if command -v brew &>/dev/null; then brew install mlton; fi + +script: ./autogen.sh && ./configure && make && make test -- cgit v1.2.3 From 7a9fe677efb63a25763cfb7217b49b88a21b33c1 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 30 Dec 2015 15:17:14 -0500 Subject: Add tap for mlton on osx --- .travis.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 978e6b48..5bc39034 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,15 +15,11 @@ compiler: # packages: # - mlton -# brew install mlton doesn't seem to work (https://github.com/travis-ci/travis-ci/issues/5379) -matrix: - allow_failures: - - os: osx - before_install: - if command -v apt-get &>/dev/null; then sudo apt-get update -qq; fi - if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton; fi - if command -v brew &>/dev/null; then brew update; fi + - if command -v brew &>/dev/null; then brew tap homebrew/boneyard; fi - if command -v brew &>/dev/null; then brew install mlton; fi script: ./autogen.sh && ./configure && make && make test -- cgit v1.2.3 From ae6d0cd9afb9e530ac75915875d16875a6392a41 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 30 Dec 2015 16:24:48 -0500 Subject: Also install openssl from brew on OSX in Travis [A Google search](https://github.com/devsisters/gospdyquic/issues/1#issuecomment-102892729) suggests that the problem is that Mac OSX OpenSSL headers are broken. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5bc39034..a93f8c7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,6 @@ before_install: - if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton; fi - if command -v brew &>/dev/null; then brew update; fi - if command -v brew &>/dev/null; then brew tap homebrew/boneyard; fi - - if command -v brew &>/dev/null; then brew install mlton; fi + - if command -v brew &>/dev/null; then brew install openssl mlton; fi script: ./autogen.sh && ./configure && make && make test -- cgit v1.2.3 From 14c6f08c58238b52253a6292d830ef78f6296ab4 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 30 Dec 2015 16:37:41 -0500 Subject: Pass --with-openssl to make use of brew's openssl on OSX --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index a93f8c7a..ead1ad85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,12 @@ compiler: # - mlton before_install: + - export CONFIGURE_ARGS="" - if command -v apt-get &>/dev/null; then sudo apt-get update -qq; fi - if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton; fi - if command -v brew &>/dev/null; then brew update; fi - if command -v brew &>/dev/null; then brew tap homebrew/boneyard; fi - if command -v brew &>/dev/null; then brew install openssl mlton; fi + - if command -v brew &>/dev/null; then export CONFIGURE_ARGS="--with-openssl=/usr/local/opt/openssl"; fi -script: ./autogen.sh && ./configure && make && make test +script: ./autogen.sh && ./configure $CONFIGURE_ARGS && make && make test -- cgit v1.2.3 From 4985395c44b8aecfe54417a383762825292ac5d5 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Fri, 1 Jan 2016 22:04:28 -0500 Subject: Update the homebrew tap for mlton This version of the tap has mlton looking for libgmp.a in the correct directory. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index ead1ad85..d0870280 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ before_install: - if command -v apt-get &>/dev/null; then sudo apt-get update -qq; fi - if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton; fi - if command -v brew &>/dev/null; then brew update; fi - - if command -v brew &>/dev/null; then brew tap homebrew/boneyard; fi + - if command -v brew &>/dev/null; then brew tap urweb/homebrew-ur; fi - if command -v brew &>/dev/null; then brew install openssl mlton; fi - if command -v brew &>/dev/null; then export CONFIGURE_ARGS="--with-openssl=/usr/local/opt/openssl"; fi -- cgit v1.2.3 From a777dd13f4075418ec883f4eb42e5de1739d50d1 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 16 Jan 2016 10:21:54 -0500 Subject: Use official MLton Homebrew package --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d0870280..0b2b8b90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ before_install: - if command -v apt-get &>/dev/null; then sudo apt-get update -qq; fi - if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton; fi - if command -v brew &>/dev/null; then brew update; fi - - if command -v brew &>/dev/null; then brew tap urweb/homebrew-ur; fi + - if command -v brew &>/dev/null; then brew tap MLton/mlton; fi - if command -v brew &>/dev/null; then brew install openssl mlton; fi - if command -v brew &>/dev/null; then export CONFIGURE_ARGS="--with-openssl=/usr/local/opt/openssl"; fi -- cgit v1.2.3