Skip to content

Commit 37025a5

Browse files
committed
fixed conflict in .travis.yml
2 parents 2639591 + e950f2a commit 37025a5

File tree

6 files changed

+69
-25
lines changed

6 files changed

+69
-25
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ deploy:
4949
api_key:
5050
secure: "fAXQOEZd83GYDVDw+KOHEJwKWAD/ILVlT9vWl6FNQkjltIBVp0PpbkgRr/fQcGrQno7UMUZdPm+OIbWAq+0d675SoeZ8NFjGd884SzjslWauB8kRG7iK72Y0EAYqRHl83XqdspuCcBE24fU95C87DbQdhp/zmKi+NB8n3m0X4ifw2G6CNpUdaj9Oxq7dDIQikUTynmmIlTMXtNLr8aQRBihLVpMoIuWLyjskyxPuRU+jFkM0xAeyqy246ZFg0eK2HTIqhlSA/HJHlPHF0gBDxnjca5ZIGYC7s5rr03ghSIMAr6nLHCmAelWPp3+znwTzJ5mGv+4vKwOvOi3EMpCDtsDbh0ybMkSr3tdJzJ9TEsgZ6MIqC2X9bwKtQcW/cmSeJmmpUVhaIZ7KjYS3cIxlQ+jU0aIZupsf0P73rovTfNWuC919H9Ggu/Mc3rELwBUZ1FctxDFZ13cM1gnpbAZXA0xZGGK0AV3Y9M1BQ/RBcnez2OT7DAwYofYe2VAnvMJbYkJUKVVMsKZqPF+9fXGYhtVTpKw3j89nE98xRkIKiWQBmUE6x5XPSgxsI1CaDBIuZiXDO/IMh2v3HGiFlOC8qAuV6Z1vdHbaIFtzPkVEZ1miMBbD3XPki3Crl4kVXtGrCPAl6uH3YVrats9CL6shfgwzsS52zBacQxQu7RCrT6U="
5151
file_glob: true
52-
file: "$TRAVIS_BUILD_DIR/build/*.{deb,rpm,dmg,txz,pkg,pkg.tar.xz,tar.gz}"
52+
file: "$TRAVIS_BUILD_DIR/build/*.{deb,pkg}"
53+
5354
skip_cleanup: true
5455
on:
5556
repo: mauroc/squiddio_pi
5657
tags: true
5758
all_branches: true
58-

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ SET(PACKAGE_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
3939
SET(PKG_RELEASE "1")
4040
SET(PKG_API_VERSION "1.16")
4141
SET(PKG_AUTHOR "Mauro Calvi")
42-
SET(PKG_NVR ${PACKAGE_NAME}-${PACKAGE_VERSION}-${PKG_RELEASE})
42+
SET(PKG_NVR ${PACKAGE_NAME}-${PACKAGE_VERSION}.${PKG_RELEASE})
4343
SET(PKG_BASE_URL
4444
"https://dl.cloudsmith.io/public/mauro-calvi/squiddio-pi/raw/files")
4545

ci/appveyor-upload.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
REPO='mauro-calvi/squiddio-pi'
88

9+
branch=$(git symbolic-ref --short HEAD)
10+
if [ "$branch" != 'master' ]; then
11+
echo "Not on master branch, skipping deployment."
12+
exit 0
13+
fi
14+
915
if [ -z "$CLOUDSMITH_API_KEY" ]; then
1016
echo 'Cannot deploy to cloudsmith, missing $CLOUDSMITH_API_KEY'
1117
exit 0

ci/circleci-build-macos.sh

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,37 @@
44
# Build the MacOS artifacts
55
#
66

7+
# Fix broken ruby on the CircleCI image:
8+
if [ -n "$CI" ]; then
9+
curl -fsSL \
10+
https://raw.githubusercontent.com/Homebrew/install/master/uninstall \
11+
> uninstall
12+
chmod 755 uninstall
13+
./uninstall -f
14+
inst="https://raw.githubusercontent.com/Homebrew/install/master/install"
15+
/usr/bin/ruby -e "$(curl -fsSL $inst)"
16+
fi
17+
18+
719
set -xe
820

21+
set -o pipefail
922
for pkg in cairo libexif xz libarchive python3 wget cmake; do
10-
brew list $pkg 2>&1 >/dev/null || brew install $pkg
23+
brew list $pkg 2>/dev/null | head -10 || brew install $pkg
1124
done
1225

13-
wget http://opencpn.navnux.org/build_deps/wx312_opencpn50_macos109.tar.xz
26+
wget -q http://opencpn.navnux.org/build_deps/wx312_opencpn50_macos109.tar.xz
1427
tar xJf wx312_opencpn50_macos109.tar.xz -C /tmp
1528
export PATH="/usr/local/opt/gettext/bin:$PATH"
1629
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
1730

1831
rm -rf build && mkdir build && cd build
1932
test -z "$TRAVIS_TAG" && CI_BUILD=OFF || CI_BUILD=ON
20-
cmake -DOCPN_CI_BUILD=$CI_BUILD \
21-
-DOCPN_USE_LIBCPP=ON \
33+
cmake \
2234
-DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx312_opencpn50_macos109/bin/wx-config \
2335
-DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx312_opencpn50_macos109" \
24-
-DCMAKE_INSTALL_PREFIX=/tmp/opencpn -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
36+
-DCMAKE_INSTALL_PREFIX=/tmp/opencpn \
37+
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
2538
..
2639
make -sj2
2740
make package

ci/circleci-upload.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ if [ -z "$CIRCLECI" ]; then
1111
exit 0;
1212
fi
1313

14+
branch=$(git symbolic-ref --short HEAD)
15+
if [ "$branch" != 'master' ]; then
16+
echo "Not on master branch, skipping deployment."
17+
exit 0
18+
fi
19+
1420
if [ -z "$CLOUDSMITH_API_KEY" ]; then
1521
echo 'Cannot deploy to cloudsmith, missing $CLOUDSMITH_API_KEY'
1622
exit 0

ci/travis-build-osx.sh

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,52 @@
44
# Build the Travis OSX artifacts
55
#
66

7-
# bailout on errors and echo commands
8-
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > uninstall
9-
chmod 755 uninstall
10-
./uninstall -f
11-
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
7+
# As of travis-ci-macos-10.13-xcode9.4.1-1529955246, the travis osx image
8+
# contains a broken homebrew. Walk-around by reinstalling:
9+
if [ -n "$TRAVIS" ]; then
10+
curl -fsSL \
11+
https://raw.githubusercontent.com/Homebrew/install/master/uninstall \
12+
> uninstall
13+
chmod 755 uninstall
14+
./uninstall -f
15+
inst="https://raw.githubusercontent.com/Homebrew/install/master/install"
16+
/usr/bin/ruby -e "$(curl -fsSL $inst)"
17+
fi
1218

19+
# bailout on errors and echo commands
1320
set -xe
1421

15-
for pkg in cairo cmake libarchive libexif python3 wget xz; do
16-
brew list $pkg || brew install $pkg
22+
set -o pipefail
23+
for pkg in cairo cmake curl libarchive libexif python3 wget xz; do
24+
brew list $pkg 2>/dev/null | head -10 || brew install $pkg
1725
done
18-
curl --version >/dev/null || brew install curl
19-
wget http://opencpn.navnux.org/build_deps/wx312_opencpn50_macos109.tar.xz
26+
27+
wget -q http://opencpn.navnux.org/build_deps/wx312_opencpn50_macos109.tar.xz
2028
tar xJf wx312_opencpn50_macos109.tar.xz -C /tmp
2129
export PATH="/usr/local/opt/gettext/bin:$PATH"
2230
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
2331

24-
mkdir build
25-
cd build
26-
test -z "$TRAVIS_TAG" && CI_BUILD=OFF || CI_BUILD=ON
27-
cmake -DOCPN_CI_BUILD=$CI_BUILD \
28-
-DOCPN_USE_LIBCPP=ON \
32+
mkdir build && cd build
33+
cmake \
2934
-DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx312_opencpn50_macos109/bin/wx-config \
3035
-DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx312_opencpn50_macos109" \
31-
-DCMAKE_INSTALL_PREFIX=/tmp/opencpn -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
36+
-DCMAKE_INSTALL_PREFIX=/tmp/opencpn \
37+
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
3238
..
3339
make -sj2
3440
make package
35-
rm -rf /usr/local/lib/ruby/gems/ && brew reinstall ruby
36-
chmod 644 /usr/local/lib/lib*.dylib
41+
42+
wget -q http://opencpn.navnux.org/build_deps/Packages.dmg
43+
hdiutil attach Packages.dmg
44+
sudo installer -pkg "/Volumes/Packages 1.2.5/Install Packages.pkg" -target "/"
45+
make install
46+
make create-pkg
47+
48+
ls -l *.pkg *.tar.gz *.xml
49+
50+
# As of travis-ci-macos-10.13-xcode9.4.1-1529955246, the travis osx image
51+
# contains a broken ruby setup used by deployment code. Walk around by
52+
# reinstalling:
53+
if [ -n "$TRAVIS" ]; then
54+
rm -rf /usr/local/lib/ruby/gems/ && brew reinstall ruby
55+
fi

0 commit comments

Comments
 (0)