Skip to content

Commit

Permalink
Merge pull request #5 from project-renard/ci-oberth
Browse files Browse the repository at this point in the history
Use oberth-prototype for CI
  • Loading branch information
zmughal committed Oct 4, 2018
2 parents 42f93ce + 6648c9f commit ada6a5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 55 deletions.
49 changes: 15 additions & 34 deletions .travis.yml
@@ -1,38 +1,19 @@
language: perl
cache:
directories:
# local::lib caching
- $HOME/perl5
- maint/cpanfile-git-log
addons:
apt:
packages:
- libcairo2
- aspell # for dzil Test::PodSpelling
- aspell-en # for dzil Test::PodSpelling

matrix:
include:
- perl: "5.16"
os: linux
dist: trusty
sudo: false
- perl: "5.18"
env: COVERAGE=1 # enables coverage+coveralls reporting
os: linux
dist: trusty
sudo: false
- perl: "5.20"
os: linux
dist: trusty
sudo: false
- perl: "blead"
os: linux
dist: trusty
sudo: false
- perl: "system"
os: osx
allow_failures:
- perl: blead # ignore failures for blead perl
- os: linux
sudo: required
services: docker
- os: linux
sudo: required
services: docker
env: OBERTH_COVERAGE=coveralls
- os: osx

before_install:
- export DEVOPS_BRANCH="master"
- eval "$(curl https://raw.githubusercontent.com/project-renard/devops/$DEVOPS_BRANCH/script/helper.pl | perl -- | awk '/^#START/,/^#END/ { print > "/dev/stdout"; next } { print > "/dev/stderr"}' )"
- eval "$(curl https://raw.githubusercontent.com/oberth-manoeuvre/oberth-prototype/master/script/ci/travis-oberth.sh)"
- travis-oberth before-install

install: travis-oberth install
script: travis-oberth script
26 changes: 5 additions & 21 deletions appveyor.yml
Expand Up @@ -3,33 +3,17 @@ version: 1.0.{build}
cache:
# cache local::lib
- C:\msys64\mingw64\lib\perl5\site_perl -> appveyor.yml
- C:\msys64\mingw64\bin\cpanm -> appveyor.yml
- C:\msys64\mingw64\bin\dzil -> appveyor.yml
- C:\msys64\mingw64\bin\pm-uninstall -> appveyor.yml
- C:\msys64\mingw64\bin\site_perl -> appveyor.yml
- C:\msys64\home\%Username%\perl5 -> appveyor.yml
- maint/cpanfile-git-log -> appveyor.yml
# cache for devops helper.pl
- C:\Perl\site -> appveyor.yml

environment:
matrix:
- COMPILER: msys2
PLATFORM: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
BIT: 64

install:
# running under CI
- set CI_TESTING=1
- set DEVOPS_BRANCH=master
- cinst curl -y
- 'cd %APPVEYOR_BUILD_FOLDER% & curl -fsS -o helper.pl https://raw.githubusercontent.com/project-renard/devops/%DEVOPS_BRANCH%/script/helper.pl & perl helper.pl install'
- 'echo End intall at: & time /t'
- ps: . { iwr -useb https://raw.githubusercontent.com/oberth-manoeuvre/oberth-prototype/master/script/ci/appveyor-oberth.ps1 } | iex
- ps: appveyor-oberth install

build_script:
- 'echo Nothing to build'

- ps: appveyor-oberth build-script
test_script:
- 'cd %APPVEYOR_BUILD_FOLDER% & perl helper.pl test'
- ps: appveyor-oberth test-script

0 comments on commit ada6a5e

Please sign in to comment.