Skip to content

Commit

Permalink
Docker based build in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
vranki committed Jun 13, 2018
1 parent 0d2abff commit 4523f7d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
sudo: required
services:
- docker
language: cpp
compiler:
- gcc
before_install:
- sudo apt-get update -qq
- sudo apt-get -yq install gnupg
- sudo echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mxeapt.list
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB
- sudo apt-get update -qq
- sudo apt-get install -yq mxe-x86-64-w64-mingw32.static-qtbase mxe-x86-64-w64-mingw32.static-qtdeclarative
- sudo apt-get install -qq qtbase5-dev qtdeclarative5-dev qt5-default build-essential
script: ./scripts/ci-build.sh
- docker build -t extplane .
script:
- docker run -it -v $PWD:/ExtPlane -w /ExtPlane extplane ./scripts/ci-build.sh
branches:
only:
- master
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from ubuntu:latest

RUN apt update -qq
RUN apt -yq install gnupg
RUN echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" | tee /etc/apt/sources.list.d/mxeapt.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB
RUN apt update -qq
RUN apt install -yq mxe-x86-64-w64-mingw32.static-qtbase mxe-x86-64-w64-mingw32.static-qtdeclarative
RUN apt install -yq qtbase5-dev qtdeclarative5-dev qt5-default build-essential

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ The requirements for ExtPlane are as follows:
* Qt Framework 5+
* X-Plane SDK 3.0+

### Docker ###

If you have docker (should work on linux & mac) you can build linux & windows
binaries.

```bash
docker build -t extplane .
docker run -it -v $PWD:/ExtPlane -w /ExtPlane extplane ./scripts/ci-build.sh
```

### Debian/Ubuntu Linux ###
```bash
# 1: Install required libraries and tools
Expand Down

0 comments on commit 4523f7d

Please sign in to comment.