加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.appveyor.yml 5.60 KB
一键复制 编辑 原始数据 按行查看 历史
in3otd 提交于 2018-09-15 14:39 . Apply right ASCO patch in AppVeyor
environment:
matrix:
- MSYSTEM : MINGW64
MBITS: 64
MARCH: x86_64
- MSYSTEM : MINGW32
MBITS: 32
MARCH: i686
platform:
- x64
skip_commits:
files:
- .travis.yml
- '*.md'
#cache:
# - C:\msys64\var\cache\pacman\pkg\mingw-w64-x86_64-qt4* -> .appveyor.yml
install:
# Take a look at the environment
- set
# a couple of convenience variables
- set QTDIR=c:\msys64\mingw%MBITS%\
- set QUCSDIR=c:\qucs-win%MBITS%\
- set MSYSHOME=C:\msys64\home\appveyor\
- set "PATH=C:\msys64\usr\bin;%QTDIR%\bin;%PATH%"
- bash -lc ""
- bash -lc "pacman --version"
- bash -lc "pacman -Q"
# Switch from SF to msys2.org (default, much faster)
- bash -lc "pacman --noconfirm --sync pacman-mirrors"
- bash -lc "pacman --noconfirm -S autoconf automake bison flex"
- bash -lc "pacman --noconfirm -S mingw-w64-$MARCH-qt4"
# Set compiler (64bit)
- set "CC=/c/msys64/mingw%MBITS%/bin/gcc.exe"
- set "CXX=/c/msys64/mingw%MBITS%/bin/g++.exe"
- bash -lc "awk --version | head -n1"
build_script:
## Notes
# * The "exec 0</dev/null" opens a dummy file descriptor to fix error: ./configure: line 560: 0: Bad file descriptor
## Other dependencies
# Download, build and install ADMS
- bash -lc "exec 0</dev/null && wget.exe http://sourceforge.net/projects/mot-adms/files/adms-source/2.3/adms-2.3.6.tar.gz"
- bash -lc "exec 0</dev/null && tar xvfz adms-2.3.6.tar.gz"
- bash -lc "exec 0</dev/null && cd adms-2.3.6/ && ./configure --prefix=/c/qucs-win$MBITS && make install && cd -"
- bash -lc "exec 0</dev/null && cd /c/qucs-win$MBITS/bin && ./admsXml -h"
## Build Qucs-GUI applications and install
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/qucs && ./bootstrap"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/qucs && export QTDIR=/c/msys64/mingw$MBITS && ./configure --prefix=/c/qucs-win$MBITS --disable-dependency-tracking"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/qucs && make -j2 install"
- bash -lc "exec 0</dev/null && cd /c/qucs-win$MBITS/bin && ./qucs -v"
## Build Qucs-core and install
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/qucs-core && ./bootstrap"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/qucs-core && ./configure --prefix=/c/qucs-win$MBITS --with-mkadms=/c/qucs-win$MBITS/bin/admsXml --disable-dependency-tracking"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/qucs-core && make -j2 install"
- bash -lc "exec 0</dev/null && cd /c/qucs-win$MBITS/bin && ./qucsator -v"
## Check
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/qucs && make check || :"
# Download, patch build and install ASCO
- bash -lc "exec 0</dev/null && wget.exe https://sourceforge.net/projects/asco/files/asco/0.4.10/ASCO-0.4.10.tar.gz"
- bash -lc "exec 0</dev/null && tar xvfz ASCO-0.4.10.tar.gz || true"
# expand Autotools.tar.gz to get a small patch for de36.c
- bash -lc "exec 0</dev/null && cd ASCO-0.4.10/ && tar xvfz Autotools.tar.gz"
# add patch for selecting the Qucs simulator name
- bash -lc "exec 0</dev/null && cd ASCO-0.4.10/ && patch -p1 < $APPVEYOR_BUILD_FOLDER/contrib/ASCO-Qucs_simulator_name.patch"
# build using the provided Makefile
- bash -lc "exec 0</dev/null && cd ASCO-0.4.10/ && make -f Makefile.win32"
# check if ASCO is working (it exits with a non-zero code, hence the '|| true' )
- bash -lc "exec 0</dev/null && cd ASCO-0.4.10/ && ./asco || true"
# copy the compiled programs to the Qucs binaries directory (not all may be needed)
- bash -lc "exec 0</dev/null && cygpath -w `pwd` && set"
- copy %MSYSHOME%\ASCO-0.4.10\asco.exe %QUCSDIR%\bin
- copy %MSYSHOME%\ASCO-0.4.10\asco-test.exe %QUCSDIR%\bin
- copy %MSYSHOME%\ASCO-0.4.10\tools\alter\alter.exe %QUCSDIR%\bin
- copy %MSYSHOME%\ASCO-0.4.10\tools\monte\monte.exe %QUCSDIR%\bin
- copy %MSYSHOME%\ASCO-0.4.10\tools\log\log.exe %QUCSDIR%\bin
- copy %MSYSHOME%\ASCO-0.4.10\tools\postp\postp.exe %QUCSDIR%\bin
## Prepare simple redistributable package (no qucs-doc)
# Qucs UI and core are already installed in /c/qucs-win$MBITS
# Copy required libraries, make binaries usable from command line, Windows Explorer
- copy %QTDIR%\bin\Qt3Support4.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\QtCore4.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\QtGui4.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\QtNetwork4.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\QtXml4.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\QtSql4.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\QtSvg4.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\QtScript4.dll %QUCSDIR%\bin
- copy "%QTDIR%\bin\libstdc++-6.dll" %QUCSDIR%\bin
- copy %QTDIR%\bin\libwinpthread-1.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\libpng16-16.dll %QUCSDIR%\bin
- copy %QTDIR%\bin\zlib1.dll %QUCSDIR%\bin
- if "%MSYSTEM%" == "MINGW32" (copy %QTDIR%\bin\libgcc_s_dw2-1.dll %QUCSDIR%\bin) else (copy %QTDIR%\bin\libgcc_s_seh-1.dll %QUCSDIR%\bin)
# Run from windows cmd
- cd %QUCSDIR%\bin
- qucs.exe -v
- qucsator.exe -v
# ignore exit code from ASCO
- asco || ver>nul
# TODO
# * one could zip the %QUCSDIR% and use it for testing
# * perhaps it is best we finish the top level 'make dist',
# doing so it is easier to create tarballs, build the binaries from it and distribute both.
after_build:
- 7z a %APPVEYOR_BUILD_FOLDER%\qucs-win%MBITS%.zip %QUCSDIR%
artifacts:
# variables here must use the PowerShell syntax
- path: qucs-win$(MBITS).zip
name: qucs-win$(MBITS).zip
#on_failure:
# - bash -lc "exec 0</dev/null && cat $APPVEYOR_BUILD_FOLDER/qucs/config.log"
# - ps: Get-ChildItem .\*.log -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化