forked from rib/gputop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (37 loc) · 3.35 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
41
42
43
44
45
sudo: required
services:
- docker
language: c
os:
- linux
compiler:
- gcc
env:
global:
# GH_TOKEN scope=public_repo, for pushing to gh-pages demo site,
# limited to builds of the rib/gputop repo
- secure: "CXTLgHD8PYC3OQO88QHFaCu6tfF4Pp/fHvn9cguOptBUrkOad5IKq43r4wNv+VFKl9f99K4tvBThHOLAryi+2OFDwkKIiIHfhyaEewLQKFOxGlXLQf6JlKslzVU8/r5BeKt1KH1fuNmaqGqyv39snVmBE0HGmHntpY8U0CtISwL8riS8fQWT/Ae3vUVDnkCaHen6QfCvOQtwZey7GwFp2+Dn7lVC4xviOTR2zEydMzRnvhzwO4NkeCtigqgY5jEW6Irmk72Ng/27UTYY/ps+/dvtLeL2xGWziPRWf92z6qMGJAuX6CfAkwPHF4G/MNnOSQ2R3YZPDPzSLitpz/ThXnpfUlJMpa7fV/RZMp9+WjbSvyfi4mUG+fyvWPS3oXkF05U5rmZn5LHrTvjFUXt7lj3n/Ugkk2+1dTFxwHE1HzV85C1kNgOIgwhJLvfddyhUncwBHKMUs6q5w9sha+5zMF0YTttG8EJFwHKqjCdwycJ5g1/i0mmj6qzTFosUmH0N+3bIPAO/ca6DjUXzoH1f0BeL22M3Uy3CEeWgfn7X87fRGK8pgHE6d3VYb6VdO8ys17Cz3SkRn4S71VwXqZg6nl462C/nUR23Rpi/ijYWhPYAqXVGPUsCOAzUl1PTBMDsHqWk2hUto2WEXCnVhpBoq5FkJ0RhV03tPyAZCtoCNcw="
matrix:
- CONFIG_OPTS="--buildtype=debug" PREP_SCRIPT="scripts/travis-ci-prep-docker-ubuntu.sh" BASE_IMAGE="djdeath/gputop-travis-ci-ubuntu16.04-18.01.09"
- CONFIG_OPTS="--buildtype=release" PREP_SCRIPT="scripts/travis-ci-prep-docker-ubuntu.sh" BASE_IMAGE="djdeath/gputop-travis-ci-ubuntu16.04-18.01.09"
- CONFIG_OPTS="--buildtype=debug -Dnative_ui=true" PREP_SCRIPT="scripts/travis-ci-prep-docker-ubuntu.sh" BASE_IMAGE="djdeath/gputop-travis-ci-ubuntu16.04-18.01.09"
- CONFIG_OPTS="--buildtype=release -Dnative_ui=true" PREP_SCRIPT="scripts/travis-ci-prep-docker-ubuntu.sh" BASE_IMAGE="djdeath/gputop-travis-ci-ubuntu16.04-18.01.09"
- CONFIG_OPTS="--buildtype=debug --cross=scripts/meson-cross/emscripten-docker-debug.txt -Dwebui=true" PREP_SCRIPT="scripts/travis-ci-prep-docker-ubuntu.sh" BASE_IMAGE="djdeath/gputop-travis-ci-ubuntu16.04-18.01.09"
- CONFIG_OPTS="--buildtype=release --cross=scripts/meson-cross/emscripten-docker-release.txt -Dwebui=true" PREP_SCRIPT="scripts/travis-ci-prep-docker-ubuntu.sh" BASE_IMAGE="djdeath/gputop-travis-ci-ubuntu16.04-18.01.09"
- CONFIG_OPTS="--buildtype=debug" PREP_SCRIPT="scripts/travis-ci-prep-docker-centos.sh" BASE_IMAGE="djdeath/gputop-travis-ci-centos7-18.01.08"
- CONFIG_OPTS="--buildtype=release" PREP_SCRIPT="scripts/travis-ci-prep-docker-centos.sh" BASE_IMAGE="djdeath/gputop-travis-ci-centos7-18.01.08"
- CONFIG_OPTS="--buildtype=debug -Dnative_ui=true" PREP_SCRIPT="scripts/travis-ci-prep-docker-centos.sh" BASE_IMAGE="djdeath/gputop-travis-ci-centos7-18.01.08"
- CONFIG_OPTS="--buildtype=release -Dnative_ui=true" PREP_SCRIPT="scripts/travis-ci-prep-docker-centos.sh" BASE_IMAGE="djdeath/gputop-travis-ci-centos7-18.01.08"
before_install:
- docker pull $BASE_IMAGE
- $PREP_SCRIPT $BASE_IMAGE final-travis-ci-image
script:
- sudo docker run -t -i -v $TRAVIS_BUILD_DIR:/home/$USER/build -e TRAVIS_BUILD_DIR="/home/$USER/build" -e CONFIG_OPTS="$CONFIG_OPTS" final-travis-ci-image scripts/travis-ci-build.sh
- sudo docker run -t -i -v $TRAVIS_BUILD_DIR:/home/$USER/build -e TRAVIS_BUILD_DIR="/home/$USER/build" -e CONFIG_OPTS="$CONFIG_OPTS" final-travis-ci-image scripts/travis-ci-test.sh
deploy:
provider: script
script: ./scripts/deploy-demo-site.sh
skip_cleanup: true
on:
condition: $CONFIG_OPTS = "--buildtype=release --cross=scripts/meson-cross/emscripten-docker-release.txt -Dwebui=true"
branch: master