Skip to content

Commit

Permalink
travis: build using devkitpro docker image
Browse files Browse the repository at this point in the history
This is actually supported and robust, as opposed to downloading
these packages from the CI builders.
  • Loading branch information
kusma committed Feb 7, 2021
1 parent 3eda3d1 commit 1a9333b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .ci/Dockerfile
@@ -0,0 +1,6 @@
FROM devkitpro/devkitarm

RUN apt-get update && \
apt install -y gcc && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
12 changes: 6 additions & 6 deletions .travis.yml
@@ -1,15 +1,15 @@
language: c

sudo: required

services: docker

install:
- wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb &&
sudo dpkg -i devkitpro-pacman.deb
- sudo dkp-pacman --noconfirm -S gba-dev
- export DEVKITPRO=/opt/devkitpro
- docker build -t build .ci/
- pip install --user cpp-coveralls

script:
- make all examples
- make check
- docker run -v $TRAVIS_BUILD_DIR:/build build make -C /build all examples check

after_success:
- coveralls --include src --gcov-options '\-lp'

0 comments on commit 1a9333b

Please sign in to comment.