forked from fritzing/fritzing-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use static linking for libgit2 on mac os and linux Enable multi core builds Generate dmg file in deploy_fritzing_mac script Add MSVC2017 target Add travis + docker config to build on trusty, bionic Add travis config xcode10.1 and xcode10.2 Add appveyor config to build on MSVC2017
- Loading branch information
1 parent
884f9c1
commit cc9d974
Showing
14 changed files
with
243 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
release | ||
debug | ||
core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
matrix: | ||
include: | ||
- os: linux | ||
language: generic | ||
services: | ||
- docker | ||
before_install: | ||
- docker pull registry.gitlab.com/fritzing/fritzing-app_playground/build:trusty | ||
script: | ||
- TARGET=trusty docker/docker-build.sh | ||
|
||
- os: linux | ||
language: generic | ||
services: | ||
- docker | ||
before_install: | ||
- docker pull registry.gitlab.com/fritzing/fritzing-app_playground/build:bionic | ||
script: | ||
- TARGET=bionic docker/docker-build.sh | ||
|
||
- os: osx | ||
language: cpp | ||
osx_image: xcode10.2 | ||
cache: | ||
directories: | ||
../libgit2/build | ||
|
||
addons: | ||
homebrew: | ||
packages: | ||
- qt5 | ||
|
||
before_install: | ||
- mkdir -p ../libgit2/build | ||
- wget -q -O - https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz | tar xz && mv libgit2-0.28.1/* ../libgit2/ | ||
- (cd ../libgit2/build && cmake -D BUILD_SHARED_LIBS=OFF .. && cmake --build .) | ||
- (cd src/lib && wget -q -O - https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 | tar xj) | ||
- xcrun -sdk macosx --show-sdk-path | ||
script: | ||
- tools/deploy_fritzing_mac.sh | ||
|
||
- os: osx | ||
language: objective-c | ||
osx_image: xcode10.1 | ||
cache: | ||
directories: | ||
../libgit2/build | ||
|
||
addons: | ||
homebrew: | ||
packages: | ||
- qt5 | ||
|
||
before_install: | ||
- mkdir -p ../libgit2/build | ||
- wget -q -O - https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz | tar xz && mv libgit2-0.28.1/* ../libgit2/ | ||
- (cd ../libgit2/build && cmake -D BUILD_SHARED_LIBS=OFF .. && cmake --build .) | ||
- (cd src/lib && wget -q -O - https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 | tar xj) | ||
- xcrun -sdk macosx --show-sdk-path | ||
script: | ||
- tools/deploy_fritzing_mac.sh | ||
|
||
|
||
# Fails. We did nor find a good way to install qt and start a developer command prompt yet. | ||
# - os: windows | ||
# language: cpp | ||
# before_install: | ||
# - choco install -y qtcreator | ||
|
||
# script: | ||
# - tools/release_fritzing.bat 0.9.4b 64 2017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
image: Visual Studio 2017 | ||
|
||
cache: | ||
- ../libgit2/build64 -> appveyor.yml | ||
|
||
install: | ||
- set BOOST_ROOT=C:\Libraries\boost_1_67_0 | ||
- cd .. | ||
- curl -fsSL https://github.com/libgit2/libgit2/archive/maint/v0.28.zip -o libgit2.zip | ||
- 7z x libgit2.zip | ||
- xcopy libgit2-maint-v0.28 libgit2 /c /d /e /h /i /q /s /y | ||
- cd libgit2 | ||
- if not exist build64 mkdir build64 | ||
- cd build64 | ||
- cmake -DBUILD_CLAR=OFF -DTHREADSAFE=ON -G "Visual Studio 15 2017 Win64" .. | ||
- cmake --build . | ||
- cd c:\projects\fritzing-app\src\lib | ||
- curl -fsSL https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.zip -o boost_1_70_0.zip | ||
- 7z x boost_1_70_0.zip | ||
- cd ../.. | ||
build_script: | ||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
- tools/release_fritzing.bat 0.9.4ci 64 2017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# A new image must to be pushed, to make changes to this file valid: | ||
# docker build -t registry.gitlab.com/fritzing/fritzing-app_playground/build:bionic docker/build_bionic | ||
# docker push registry.gitlab.com/fritzing/fritzing-app_playground/build:bionic | ||
|
||
FROM ubuntu:bionic-20190307 | ||
|
||
MAINTAINER Kjell [email protected] | ||
|
||
RUN apt-get update -y && apt-get install -y build-essential cmake wget git libjpeg-dev flex bison libz-dev libpng-dev libncurses5-dev genparse python-dev libssl-dev libudev-dev qt5-default libqt5serialport5-dev libqt5svg5-dev | ||
|
||
ENV BOOST_ROOT /usr/local | ||
|
||
RUN cd /home && wget -q -O - https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 | tar xj | ||
|
||
RUN cd /home/boost_1_70_0 \ | ||
&& ./bootstrap.sh --prefix=${BOOST_ROOT} \ | ||
&& ./b2 -j 16 install \ | ||
&& cd /home \ | ||
&& rm -rf boost_1_70_0 | ||
|
||
RUN cd / && wget -q -O - https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz | tar xz && mv libgit2-0.28.1 libgit2 | ||
|
||
RUN cd /libgit2 \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake -D BUILD_SHARED_LIBS=OFF .. \ | ||
&& cmake --build . -- -j16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# A new image must to be pushed, to make changes to this file valid: | ||
# docker build -t registry.gitlab.com/fritzing/fritzing-app_playground/build:trusty docker/build_trusty | ||
# docker push registry.gitlab.com/fritzing/fritzing-app_playground/build:trusty | ||
|
||
FROM ubuntu:trusty-20190305 | ||
|
||
MAINTAINER Kjell [email protected] | ||
|
||
RUN apt-get update -y && apt-get install -y build-essential cmake wget git libjpeg-dev flex bison libz-dev libpng-dev libncurses5-dev genparse python-dev libssl-dev libudev-dev qt5-default libqt5serialport5-dev libqt5svg5-dev | ||
|
||
ENV BOOST_ROOT /usr/local | ||
|
||
RUN cd /home && wget -q -O - https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 | tar xj | ||
|
||
RUN cd /home/boost_1_70_0 \ | ||
&& ./bootstrap.sh --prefix=${BOOST_ROOT} \ | ||
&& ./b2 -j 16 install \ | ||
&& cd /home \ | ||
&& rm -rf boost_1_70_0 | ||
|
||
RUN cd / && wget -q -O - https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz | tar xz && mv libgit2-0.28.1 libgit2 | ||
|
||
RUN cd /libgit2 \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake -D BUILD_SHARED_LIBS=OFF .. \ | ||
&& cmake --build . -- -j16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Currently supported values for ${TARGET} are 'bionic' or 'trusty' | ||
# pwd should be the repos root. | ||
# | ||
# Example: | ||
# | ||
# /home/user/git/fritzing-app:$ TARGET=trusty ./docker/docker-build.sh | ||
# | ||
# Step 1/7 : FROM registry.gitlab.com/fritzing/fritzing-app_playground/build:trusty | ||
# ---> 2c4428f29501 | ||
# .... | ||
|
||
docker build -t fritzing_${TARGET} docker/fritzing_${TARGET} --build-arg user_id=`id -u` | ||
docker run -v "$(pwd):/fritzing" fritzing_${TARGET} qmake phoenix.pro | ||
docker run -v "$(pwd):/fritzing" fritzing_${TARGET} make -j16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM registry.gitlab.com/fritzing/fritzing-app_playground/build:bionic | ||
|
||
MAINTAINER Kjell [email protected] | ||
|
||
ARG user_id=1000 | ||
ENV env_user_id=${user_id} | ||
|
||
RUN groupadd -g ${env_user_id} builder && \ | ||
useradd -r -u ${env_user_id} -g builder builder | ||
|
||
USER builder | ||
WORKDIR fritzing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM registry.gitlab.com/fritzing/fritzing-app_playground/build:trusty | ||
|
||
MAINTAINER Kjell [email protected] | ||
|
||
ARG user_id=1000 | ||
ENV env_user_id=${user_id} | ||
|
||
RUN groupadd -g ${env_user_id} builder && \ | ||
useradd -r -u ${env_user_id} -g builder builder | ||
|
||
USER builder | ||
WORKDIR fritzing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
ls | ||
cd /fritzing | ||
qmake phoenix.pro | ||
make | ||
|
||
# make test | ||
# echo "Tests ran successful!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters