-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
40 lines (40 loc) · 2.62 KB
/
.travis.yml
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
branches:
except:
- "/^wip/"
language: c
dist: xenial
addons:
ssh_known_hosts:
- crowdie.stanford.edu
cache:
ccache: true
directories:
- .flatpak-builder/downloads
- .flatpak-builder/cache
- .flatpak-builder/checksums
before_install:
- ./travis/unlock-key.sh
- sudo apt-add-repository -y ppa:alexlarsson/flatpak
- sudo apt-get update -q -y
install:
- sudo apt-get install -y flatpak-builder elfutils
- flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- flatpak --user install -y flathub org.gnome.Sdk//3.38 org.gnome.Platform//3.38 org.freedesktop.Sdk.Extension.node12//20.08
- ./travis/download-deps.py
- test -f .flatpak-builder/cache/config || rm -fr .flatpak-builder/cache
script:
- flatpak-builder --ccache --stop-at=almond-gnome --force-clean _app/ edu.stanford.Almond.json
- flatpak build --env=npm_config_nodedir=/usr/lib/sdk/node12 --env=npm_config_build_from_source=true --env=npm_config_sqlite=/app --env=npm_config_sqlite_libname=sqlcipher --env=NPM=/usr/lib/sdk/node12/bin/npm --env=PATH=/app/bin:/usr/bin:/usr/lib/sdk/node12/bin --share=network _app npm ci
- flatpak build --env=npm_config_nodedir=/usr/lib/sdk/node12 --env=npm_config_build_from_source=true --env=npm_config_sqlite=/app --env=npm_config_sqlite_libname=sqlcipher --env=NPM=/usr/lib/sdk/node12/bin/npm --env=PATH=/app/bin:/usr/bin:/usr/lib/sdk/node12/bin --share=network _app npm run lint
- flatpak build --env=npm_config_nodedir=/usr/lib/sdk/node12 --env=npm_config_build_from_source=true --env=npm_config_sqlite=/app --env=npm_config_sqlite_libname=sqlcipher --env=NPM=/usr/lib/sdk/node12/bin/npm --env=PATH=/app/bin:/usr/bin:/usr/lib/sdk/node12/bin --share=network _app meson --prefix=/app _build
- flatpak build --env=npm_config_nodedir=/usr/lib/sdk/node12 --env=npm_config_build_from_source=true --env=npm_config_sqlite=/app --env=npm_config_sqlite_libname=sqlcipher --env=NPM=/usr/lib/sdk/node12/bin/npm --env=PATH=/app/bin:/usr/bin:/usr/lib/sdk/node12/bin --share=network _app ninja -C _build
- flatpak build --env=npm_config_nodedir=/usr/lib/sdk/node12 --env=npm_config_build_from_source=true --env=npm_config_sqlite=/app --env=npm_config_sqlite_libname=sqlcipher --env=NPM=/usr/lib/sdk/node12/bin/npm --env=PATH=/app/bin:/usr/bin:/usr/lib/sdk/node12/bin --share=network _app ninja -C _build install >/dev/null 2>&1
- flatpak-builder --finish-only --repo=_repo _app edu.stanford.Almond.json
deploy:
provider: script
cleanup: false
skip_cleanup: true
script: ssh -i ./travis/id_rsa.autodeploy flatpak-builder@crowdie.stanford.edu
on:
branch: master
repo: stanford-oval/almond-gnome