Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Backport circleci configuration from develop
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: ubuntu:18.04 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Add vala-team/ppa | ||
command: | | ||
apt update | ||
apt install -y software-properties-common gnupg | ||
add-apt-repository ppa:vala-team/ppa -y | ||
- run: | ||
name: Install dependencies | ||
command: apt update | ||
&& apt install -y | ||
clang | ||
cmake | ||
libconfig-dev | ||
libgtest-dev | ||
libopus-dev | ||
libsodium-dev | ||
libvpx-dev | ||
pkg-config | ||
libgee-0.8-dev | ||
libgspell-1-dev | ||
libgtk-3-dev | ||
libjson-glib-dev | ||
libsoup2.4-dev | ||
libsqlcipher-dev | ||
libcanberra-dev | ||
libgstreamer1.0-dev | ||
libgstreamer-plugins-base1.0-dev | ||
valac | ||
python3-pip | ||
wget | ||
- run: | ||
name: Install meson | ||
command: pip3 install meson ninja | ||
- run: | ||
name: Build and install toxcore | ||
command: | | ||
wget "https://github.com/TokTok/c-toxcore/archive/v0.2.8.tar.gz" | ||
tar -xzf v0.2.8.tar.gz | ||
cd c-toxcore-0.2.8 | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr | ||
make | ||
make install | ||
cd .. | ||
- run: | ||
name: Configure | ||
command: meson build | ||
- run: | ||
name: Build | ||
command: ninja -C build | ||
- run: | ||
name: Test | ||
command: ninja -C build test | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build |