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

Adding travis and appveyor cotinuous integration tests #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
43 changes: 43 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 1.0.{build}

environment:
global:
APPVEYOR_OS_NAME: windows
matrix:
#MSYS2 Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x86
BUILDER: MSYS2

#VisualStudio Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x86
BUILDER : VS
BITS: 32
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
BUILDER : VS
BITS: 64

configuration: Debug
shallow_clone: true
clone_depth: 10

init:
- set MSYS2_PATH=c:\msys64
- set CHERE_INVOKING=1
- if "%BUILDER%_%PLATFORM%"=="MSYS2_x86" set MSYSTEM=MINGW32
- if "%BUILDER%_%PLATFORM%"=="MSYS2_x64" set MSYSTEM=MINGW64
- '%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -S --needed unzip rsync"'
- if "%BUILDER%"=="VS" set PATH=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH%

install:
- cd ..
- git clone --depth=1 --branch=master https://github.com/openframeworks/openFrameworks
- call openFrameworks\scripts\ci\addons\install.cmd

build_script:
- cd %OF_PATH%
- scripts\ci\addons\build.cmd


199 changes: 199 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
# This file allows testing your addon using travis CI servers to use it you'll need to
# create an account in travis.org and enable your addon there.
#
# By default it will test linux 64bit and osx against the master and stable OF branches.
# Other platforms can be enabled by uncommenting the corresponding sections.
#
# If any extra install is needed to use the addon it can be included in the corresponding
# install script in:
#
# scripts/ci/$TARGET/install.sh
#


language: c++
compiler: gcc
sudo: true
matrix:
include:
# fully specify builds, include can't dynamically expand matrix entries
# relative order of sudo and env is important so that addons: is recognized

# Linux 64bit, OF master
- os: linux
dist: trusty
sudo: required
env: TARGET="linux64" OF_BRANCH="master"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- gdb

# Linux 64bit, OF stable: Not supported yet
# - os: linux
# dist: trusty
# sudo: required
# env: TARGET="linux64" OF_BRANCH="stable"
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - gcc-4.9
# - g++-4.9
# - gdb

# OSX, OF master
- os: osx
osx_image: xcode8
compiler: clang
env: TARGET="osx" OF_BRANCH="master"

# OSX, OF stable: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="osx" OF_BRANCH="stable"

# Linux ARM6, OF master: Uncomment following lines to enable
# - os: linux
# sudo: required
# dist: trusty
# env: TARGET="linuxarmv6l" OF_BRANCH="master"


# Linux ARM6, OF stable: Not supported yet
# - os: linux
# sudo: required
# dist: trusty
# env: TARGET="linuxarmv6l" OF_BRANCH="stable"

# Linux ARM7, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="linuxarmv7l" OF_BRANCH="master"
# cache:
# directories:
# - ~/rpi2_toolchain
# - ~/firmware-master
# - ~/archlinux

# Linux ARM7, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="linuxarmv7l" OF_BRANCH="stable"
# cache:
# directories:
# - ~/rpi2_toolchain
# - ~/firmware-master
# - ~/archlinux


# Emscripten, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="emscripten" OF_BRANCH="master"
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - libstdc++6


# Emscripten, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="emscripten" OF_BRANCH="stable"
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - libstdc++6


# iOS, OF master: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="ios" OF_BRANCH="master"


# iOS, OF stable: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="ios" OF_BRANCH="stable"


# tvOS, OF master: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="tvos" OF_BRANCH="master"


# tvOS, OF stable: Not supported yet
# - os: osx
# osx_image: xcode8
# compiler: clang
# env: TARGET="tvos" OF_BRANCH="stable"


# Android armv7, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="android" OPT="armv7" OF_BRANCH="master"
# cache:
# directories:
# - ~/android-ndk-r12b


# Android armv7, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="android" OPT="armv7" OF_BRANCH="stable"
# cache:
# directories:
# - ~/android-ndk-r12b


# Android x86, OF master: Uncomment following lines to enable
# - os: linux
# sudo: false
# env: TARGET="android" OPT="x86" OF_BRANCH="master"
# cache:
# directories:
# - ~/android-ndk-r12b


# Android x86, OF stable: Not supported yet
# - os: linux
# sudo: false
# env: TARGET="android" OPT="x86" OF_BRANCH="stable"
# cache:
# directories:
# - ~/android-ndk-r12b


# Exclude the default build that would otherwise be generated
# see https://github.com/travis-ci/travis-ci/issues/1228
exclude:
- compiler: gcc

install:
- cd ~
- git clone --depth=1 --branch=$OF_BRANCH https://github.com/openframeworks/openFrameworks
- cd openFrameworks
- scripts/ci/addons/install.sh

script:
- scripts/ci/addons/build.sh

git:
depth: 10