Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add appveyor for Windows VS 2019 / Ubuntu1804 / Macos #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 43 additions & 20 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.{build}
version: 4.0.{build}

image:
- macOS
Expand All @@ -17,20 +17,30 @@ for:
clone_folder: ~/SimCenter

init:
- export PATH="$HOME/Qt/5.15.2/clang_64/bin:$HOME/venv3.9/bin:$PATH"
- python --version
- python -m pip install --upgrade pip
- export PATH="$HOME/Qt/5.15.2/clang_64/bin:$HOME/venv3.8/bin:$PATH"
- python3 --version
- python3 -m pip install --upgrade pip
- pip install conan==1.60.1
- conan user
- conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter

install:
- uname
- git clone https://github.com/NHERI-SimCenter/SimCenterCommon.git
- git clone https://github.com/NHERI-SimCenter/quoFEM.git
- rm -rf SimCenterBackendApplications
- rm -rf quoFEM
- rm -rf SimCenterCommon
- git clone https://github.com/JustinBonus/SimCenterBackendApplications.git
- git clone https://github.com/JustinBonus/SimCenterCommon.git
- git clone https://github.com/JustinBonus/quoFEM.git

build_script:


# build SimCenterBackendApplications
- cd SimCenterBackendApplications
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..

# build quoFEM
- cd quoFEM
- chmod 'u+x' makeEXE.sh
Expand All @@ -40,7 +50,7 @@ for:
test_script:
- qmake --version
- gcc --version
- python --version
- python3 --version

# Ubuntu1804
-
Expand All @@ -56,17 +66,28 @@ for:

install:
- uname
- rm -rf SimCenterBackendApplications
- rm -rf SimCenterCommon
- rm -rf quoFEM
- sudo update-alternatives --set gcc /usr/bin/gcc-9
- sudo apt-get update
- sudo apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libblas-dev liblapack-dev
- python -m pip install --upgrade pip
- pip install conan
- python3 -m pip install --upgrade pip
- pip install conan==1.60.1
- conan user
- conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter
- git clone https://github.com/NHERI-SimCenter/SimCenterCommon.git
- git clone https://github.com/NHERI-SimCenter/quoFEM.git
- git clone https://github.com/JustinBonus/SimCenterBackendApplications.git
- git clone https://github.com/JustinBonus/SimCenterCommon.git
- git clone https://github.com/JustinBonus/quoFEM.git

build_script:

# build SimCenterBackendApplications
- cd SimCenterBackendApplications
- chmod 'u+x' makeEXE.sh
- ./makeEXE.sh
- cd ..

# build quoFEM
- cd quoFEM
- chmod 'u+x' makeEXE.sh
Expand All @@ -77,11 +98,10 @@ for:
test_script:
- qmake --version
- gcc --version
- python --version
- python3 --version

# Visual Studio 2019
-

matrix:
only:
- image: Visual Studio 2019
Expand All @@ -94,7 +114,7 @@ for:
- cmd: set QT=C:\Qt\5.15.2\msvc2019_64\bin
- cmd: set PATH=%PYTHON%;%PYTHON%\Scripts;%QT%;%PATH%
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmd: pip.exe install conan
- cmd: pip.exe install conan==1.60.1
- cmd: conan user
- cmd: conan profile new default --detect
- cmd: conan profile show default
Expand All @@ -104,9 +124,12 @@ for:
- cmd: echo %PATH%

install:
- cmd: git clone https://github.com/NHERI-SimCenter/SimCenterBackendApplications.git
- git clone https://github.com/NHERI-SimCenter/SimCenterCommon.git
- git clone https://github.com/NHERI-SimCenter/quoFEM.git
- cmd: rm -rf SimCenterBackendApplications
- cmd: rm -rf SimCenterCommon
- cmd: rm -rf quoFEM
- cmd: git clone https://github.com/JustinBonus/SimCenterBackendApplications.git
- cmd: git clone https://github.com/JustinBonus/SimCenterCommon.git
- cmd: git clone https://github.com/JustinBonus/quoFEM.git
- cmd: dir

build_script:
Expand All @@ -117,7 +140,7 @@ for:
- cmd: mkdir build
- cmd: cd build
- cmd: conan install .. --build missing
- cmd: cmake .. -G "Visual Studio 16 2019"
- cmd: cmake -DCMAKE_CXX_STANDARD=17-DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF .. -G "Visual Studio 16 2019"
- cmd: cmake --build . --config Release
- cmd: cmake --install .
- cmd: cd ..
Expand All @@ -137,4 +160,4 @@ for:


test_script:
-cmd: python --version
- cmd: python --version