Package list cinnamon-menus / 63b5e5a
Add CI configuration Clement Lefebvre 3 years ago
1 changed file(s) with 62 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 version: 2.0
1
2 shared: &shared
3
4 steps:
5
6 - checkout
7
8 - run:
9 name: Prepare environment
10 command: apt-get update
11
12 - run:
13 name: Build project
14 command: mint-build -i
15
16 - run:
17 name: Prepare packages
18 command: |
19 if [ -z $CI_PULL_REQUEST ]; then
20 mkdir /packages
21 mv /root/*.deb /packages/
22 git log > /packages/git.log
23 cd /
24 tar zcvf packages.tar.gz packages
25 fi
26
27 - run:
28 name: Deploy packages to Github
29 command: |
30 if [ -z $CI_PULL_REQUEST ]; then
31 wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
32 apt-get install --yes unzip
33 unzip ghr_v0.5.4_linux_amd64.zip
34 TAG="master".$CIRCLE_JOB
35 ./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /packages.tar.gz
36 ./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /packages.tar.gz
37 fi
38
39 jobs:
40 "mint18":
41 <<: *shared
42 docker:
43 - image: linuxmintd/mint18-amd64
44
45 "mint19":
46 <<: *shared
47 docker:
48 - image: linuxmintd/mint19-amd64
49
50 "lmde3":
51 <<: *shared
52 docker:
53 - image: linuxmintd/lmde3-amd64
54
55 workflows:
56 version: 2
57 build:
58 jobs:
59 - "mint18"
60 - "mint19"
61 - "lmde3"