forked from mikkeloscar/arch-travis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 2.11 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
language: c
compiler:
- gcc
- clang
services:
- docker
arch:
repos:
- archlinuxfr=http://repo.archlinux.fr/$arch
packages:
- procps-ng
- reflector
- screenfetch-git
script:
- sudo screenfetch
- reflector --verbose -l 20 --sort rate -p https
- echo $CC
- touch test_file
script:
# build new image
- docker build --rm=true -t mikkeloscar/arch-travis .
# run arch-travis to test new image
- bash ./arch-travis.sh
- ls -l
jobs:
include:
# push image to dockerhub
- stage: build-push
if: branch = master AND type != pull_request
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker build --rm=true -t mikkeloscar/arch-travis .
- docker push mikkeloscar/arch-travis:latest
env:
global:
- secure: IBtG4wg6aBIDfj0lkpdikbRLId5TFBYARodLDS26FwzjAEK3Ohb9Vs0qRNq4loeHoKCHq/FbiVC7Jp2i9EdQHr596G3mTKPhIb67kZShtvK491iKGxVUzLxlw9xhxv8TlADDaor+DBQjyYe9np1ri2PiDRh2lQ6G/HWNfl3YnaO8gNNXxjvBsztjvGXA+scGx1JU03bFwHG7ha4AgtQ/Dr+UsssyolMMN1y87RrVDnv1Jx/hyl2gliO+7r56xOdh844Zrg4+gWFmLMSaU5xFt6kW57i3d9w1+rirhmChZhsQ/GWhPQAHz7QZOb79PbqCKeU/Y6BA8DI5dKAtSrdIsFj3pK5lY0qBKN2J0YhNH8fk/myjPCWMOsri+DXE5wChZXA5FhAwqZuIrGo+qnjXSE6uGPx6c6p4j8CnUY73jYr6C20GupVoL04xXoD1+9sidhRO+8ziR4Mjh3gMArUCC3Y+sWw72yg9oQUqT7Jb1BPnVD3doC2Fb6BMVbhfqZEdAUbK7i/ndXpMF98rXyKTlfYXHxFSEKfthRlK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