-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (45 loc) · 1 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
46
47
48
49
50
51
sudo: required
language: c
compiler:
- gcc
- clang
services:
- docker
arch:
repos:
- archlinuxfr=http://repo.archlinux.fr/$arch
packages:
- procps-ng
- reflector
- screenfetch-git
mount:
- ~/.pkg-cache:/var/cache/pacman/pkg
- ~/.ccache:~/.ccache
# test space character in path
- $HOME/y ay:$HOME/y ay
before_install:
- sudo sed -i '/#MAKEFLAGS=/c MAKEFLAGS="-j2"' /etc/makepkg.conf
script:
- sudo screenfetch
- reflector --verbose -l 20 --sort rate -p https
- echo $CC
- touch test_file
- |
for ((i=0;i<10;i++)) ; do
echo test$i
done
script:
# build new image
- docker build --rm=true -t catergos/arch-travis:latest .
# 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 catergos/arch-travis:latest .
- docker push catergos/arch-travis:latest