forked from cksystemsteaching/selfie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 968 Bytes
/
.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
language:
- c
os:
- osx
- linux
compiler:
- clang
- gcc
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y gcc-multilib; fi
script: travis_wait 60 make all
stages:
- test
- spike
- name: deploy
if: branch = master AND type = push AND fork = false
- name: run
if: branch = master AND type = push AND fork = false
jobs:
include:
- stage: spike
sudo: required
services: docker
os: linux
script:
- docker build -t joanbm/selfie32 .
- docker run joanbm/selfie32 make spike
- stage: deploy
sudo: required
services: docker
os: linux
script:
- docker build -t joanbm/selfie32 .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push joanbm/selfie32
- stage: run
sudo: required
services: docker
os: linux
script:
- docker run joanbm/selfie32 make spike