blob: 0a6259244a2f1775a67f6e615410b0a65a9cd3b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
version: 2
jobs:
build:
docker:
- image: ubuntu:16.04
steps:
- checkout
- run:
name: Install dependencies
command: |
apt-get update
apt-get install -y cmake xvfb valac libwebkit2gtk-4.0-dev libsoup-gnome2.4-dev libgcr-3-dev libpeas-dev libsqlite3-dev libjson-glib-dev intltool libxml2-utils
- run:
name: Build
command: |
mkdir _build
cd _build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
- run:
name: Virtual framebuffer
command: Xvfb :99 -screen 0 1280x1024x24
background: true
- run:
name: Run unit tests
command: |
cd _build
make check
- run:
name: Install system-wide
command: |
cd _build
make install
android:
docker:
- image: circleci/android:api-28-alpha
environment:
- JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download dependencies
command: ./gradlew androidDependencies
- save_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
paths:
- ~/.gradle
- run:
name: Run unit tests
command: ./gradlew lint test
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
workflows:
version: 2
ci:
jobs:
- build
- android
|