Skip to content

Commit

Permalink
Add Travis CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusgreuel committed Mar 10, 2020
1 parent 7a3d3b0 commit cc50b77
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
indent_style = space
indent_size = 4
tab_width = 8

[*.yml]
indent_size = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ ylwrap
[Rr]elease/
x64/
x86/
*.log

# Visual Studio cache/options directory
.vs/
Expand Down
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions avrdude.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc50b77

Please sign in to comment.