Add Travis CI support

This commit is contained in:
Marius Greuel 2020-03-10 22:57:01 +02:00
parent 7a3d3b0013
commit cc50b77de0
4 changed files with 38 additions and 0 deletions

View File

@ -4,3 +4,6 @@
indent_style = space
indent_size = 4
tab_width = 8
[*.yml]
indent_size = 2

1
.gitignore vendored
View File

@ -56,6 +56,7 @@ ylwrap
[Rr]elease/
x64/
x86/
*.log
# Visual Studio cache/options directory
.vs/

33
.travis.yml Normal file
View File

@ -0,0 +1,33 @@
language: c++
matrix:
include:
- name: "Linux (GCC)"
os: linux
dist: bionic
compiler: gcc
before_install:
- sudo apt-get -y install make gcc automake libtool flex bison
- sudo apt-get -y install libelf-dev libusb-dev libftdi1-dev libhidapi-dev
script:
- ./bootstrap
- ./configure
- make
- name: "macOS (clang)"
os: osx
osx_image: xcode12u
compiler: clang
before_install:
- brew install flex bison
script:
- ./bootstrap
- ./configure
- make
- name: "Windows (MSVC)"
if: branch = windows OR branch = dev
os: windows
before_install:
- choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.18362"
- export PATH=$PATH:"/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin"
script:
- MSBuild.exe -fileLogger -target:avrdude -property:Configuration=Release -property:Platform=x64 avrdude.sln

View File

@ -16,6 +16,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{743FA5F6-A0D7-46F7-B73D-632B64C732FB}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.travis.yml = .travis.yml
EndProjectSection
EndProject
Global