mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Travis - Enable cache for D2XX folder
[skip appveyor] To avoid download and copy on each build
This commit is contained in:
@@ -8,6 +8,7 @@ language: cpp
|
||||
cache:
|
||||
directories:
|
||||
- qwt
|
||||
- D2XX
|
||||
|
||||
env:
|
||||
global:
|
||||
|
||||
@@ -33,10 +33,11 @@ sudo apt-get update -qq
|
||||
sudo apt-get install r-base-dev
|
||||
R --version
|
||||
|
||||
# D2XX
|
||||
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx-x86_64-1.3.6.tgz
|
||||
mkdir D2XX
|
||||
tar xf libftd2xx-x86_64-1.3.6.tgz -C D2XX
|
||||
# D2XX - refresh cache if folder is empty
|
||||
if [ -z "$(ls -A D2XX)" ]; then
|
||||
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx-x86_64-1.3.6.tgz
|
||||
tar xf libftd2xx-x86_64-1.3.6.tgz -C D2XX
|
||||
fi
|
||||
|
||||
# SRMIO
|
||||
wget http://www.zuto.de/project/files/srmio/srmio-0.1.1~git1.tar.gz
|
||||
|
||||
@@ -17,8 +17,16 @@ brew install r
|
||||
## Disable KML for now
|
||||
## brew install --HEAD travis/libkml.rb
|
||||
sudo chmod -R +w /usr/local
|
||||
curl -O https://www.ftdichip.com/Drivers/D2XX/MacOSX/D2XX1.2.2.dmg
|
||||
hdiutil mount D2XX1.2.2.dmg
|
||||
|
||||
# D2XX - refresh cache if folder is empty
|
||||
if [ -z "$(ls -A D2XX)" ]; then
|
||||
curl -O https://www.ftdichip.com/Drivers/D2XX/MacOSX/D2XX1.2.2.dmg
|
||||
hdiutil mount D2XX1.2.2.dmg
|
||||
cp /Volumes/release/D2XX/Object/10.5-10.7/x86_64/libftd2xx.1.2.2.dylib D2XX
|
||||
cp /Volumes/release/D2XX/bin/*.h D2XX
|
||||
fi
|
||||
sudo cp D2XX/libftd2xx.1.2.2.dylib /usr/local/lib
|
||||
|
||||
|
||||
# AWS client to upload binaries to S3 bucket
|
||||
brew install awscli
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -ev
|
||||
|
||||
# D2XX
|
||||
mkdir D2XX
|
||||
cp /Volumes/release/D2XX/Object/10.5-10.7/x86_64/libftd2xx.1.2.2.dylib D2XX
|
||||
sudo cp /Volumes/release/D2XX/Object/10.5-10.7/x86_64/libftd2xx.1.2.2.dylib /usr/local/lib
|
||||
cp /Volumes/release/D2XX/bin/*.h D2XX
|
||||
sed -i "" "s|libftd2xx.dylib|@executable_path/../Frameworks/libftd2xx.1.2.2.dylib|" src/FileIO/D2XX.cpp
|
||||
|
||||
# Python SIP
|
||||
python3 --version
|
||||
python3-config --prefix
|
||||
@@ -30,6 +23,8 @@ sed -i "" "s|#\(QMAKE_CXXFLAGS\).*|\1_RELEASE += -mmacosx-version-min=10.7 -arch
|
||||
sed -i "" "s|^#CloudDB|CloudDB|" src/gcconfig.pri
|
||||
sed -i "" "s|^#LIBZ|LIBZ|" src/gcconfig.pri
|
||||
sed -i "" "s|#\(SRMIO_INSTALL =.*\)|\1 /usr/local|" src/gcconfig.pri
|
||||
# D2XX
|
||||
sed -i "" "s|libftd2xx.dylib|@executable_path/../Frameworks/libftd2xx.1.2.2.dylib|" src/FileIO/D2XX.cpp
|
||||
sed -i "" "s|#\(D2XX_INCLUDE =.*\)|\1 ../D2XX|" src/gcconfig.pri
|
||||
sed -i "" "s|#\(D2XX_LIBS =.*\)|\1 -L../D2XX -lftd2xx.1.2.2|" src/gcconfig.pri
|
||||
## Disable KML for now
|
||||
|
||||
Reference in New Issue
Block a user