Merge pull request #2 from flightaware/travis

initial travis integration (no tests for now)
This commit is contained in:
Jeff Lawson 2019-02-01 19:41:48 -06:00 committed by GitHub
commit 279f4f9d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 9 deletions

20
.travis.yml Normal file
View File

@ -0,0 +1,20 @@
language: c
sudo: true
os:
- linux
- osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install tcl-tk; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install tcl8.6-dev -y; fi
script:
- autoreconf -vi
- if [ -f /usr/local/opt/tcl-tk/lib/tclConfig.sh ]; then ./configure --with-tcl=/usr/local/opt/tcl-tk/lib --prefix=/usr/local; else ./configure; fi
- make
- sudo make install

View File

@ -1,4 +1,8 @@
TclCurl - get a URL with FTP, TELNET, LDAP, DICT, FILE, HTTP or HTTPS syntax. [![Build Status](https://travis-ci.org/flightaware/tclcurl-fa.svg?branch=master)](https://travis-ci.org/flightaware/tclcurl-fa)
# TclCurl - get a URL with FTP, TELNET, LDAP, DICT, FILE, HTTP or HTTPS syntax.
## Introduction
TclCurl gives the Tcl programmer access to the facilities of libcurl, for more information TclCurl gives the Tcl programmer access to the facilities of libcurl, for more information
about what libcurl is capable of check http://curl.haxx.se. about what libcurl is capable of check http://curl.haxx.se.
@ -9,24 +13,24 @@ To make type:
make make
make install make install
The configure script will deduce $PREFIX from the tcl installation. The configure script will deduce `$PREFIX` from the tcl installation.
The generated Makefile uses the file $PREFIX/lib/tclConfig.sh that was left by The generated `Makefile` uses the file `$PREFIX/lib/tclConfig.sh` that was left by
the make of tcl for most of its configuration parameters. the make of tcl for most of its configuration parameters.
There is another README to explain how to compile in Windows. There is another file, ReadMeW32.txt, to explain how to compile in Windows.
Troubleshooting ## Troubleshooting
If you are running Red Hat or Fedora and you are compiling from source, If you are running Red Hat or Fedora and you are compiling from source,
make sure the directory '/usr/local/lib' is listed in '/etc/ld.so.conf', make sure the directory `/usr/local/lib` is listed in `/etc/ld.so.conf`,
if it isn't add it before installing cURL. if it isn't add it before installing cURL.
If the configure script doesn't detect Tcl even though it is there, it If the configure script doesn't detect Tcl even though it is there, it
is probably because there is no 'tclConfig.sh' file, maybe you need is probably because there is no `tclConfig.sh` file, maybe you need
to install a 'tcl-devel' package or maybe it would be a good idea to install a `tcl-devel` package or maybe it would be a good idea
to download the latest version, and install that. to download the latest version, and install that.
Usage: ## Usage
package require TclCurl package require TclCurl
@ -52,8 +56,13 @@ Usage:
Check the man page for details. Check the man page for details.
## Authors
Written by: Andres Garcia (fandom@telefonica.net) Written by: Andres Garcia (fandom@telefonica.net)
Cloned from a repo once at: https://bitbucket.org/smh377/tclcurl/
## License
Use at your own risk. No support. Use at your own risk. No support.
BSD like license, check 'license.terms' for details. BSD like license, check 'license.terms' for details.