Преглед изворни кода

Update drone.yml

tags/v0.0.5
Peter Vivell пре 7 година
родитељ
комит
dc24c398d9
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4
    1
      drone.yml

+ 4
- 1
drone.yml Прегледај датотеку

7
 
7
 
8
 cache:
8
 cache:
9
   mount:
9
   mount:
10
-    - /var/cache/apt/archives
10
+    - .cache
11
 
11
 
12
 steps:
12
 steps:
13
 - name: build
13
 - name: build
17
     BUILDDEPS: build-essential libc6-dev libhidapi-dev libssl-dev   
17
     BUILDDEPS: build-essential libc6-dev libhidapi-dev libssl-dev   
18
     MAKEFLAGS: -j 4
18
     MAKEFLAGS: -j 4
19
   commands:
19
   commands:
20
+    - mkdir -p /var/cache/apt/archives
21
+    - cp -rp .cache/ /var/cache/apt/archives/
20
     - echo 'Acquire::http { Proxy "http://172.17.0.1:3142"; }' | tee -a /etc/apt/apt.conf.d/proxy
22
     - echo 'Acquire::http { Proxy "http://172.17.0.1:3142"; }' | tee -a /etc/apt/apt.conf.d/proxy
21
     - apt-get update
23
     - apt-get update
22
     - apt-get --yes upgrade
24
     - apt-get --yes upgrade
23
     - apt-get --yes install $BUILDDEPS
25
     - apt-get --yes install $BUILDDEPS
26
+    - cp -rp /var/cache/apt/archives .cache/
24
     - export MAKEFLAGS
27
     - export MAKEFLAGS
25
     - make -C src
28
     - make -C src
26
     - make -C src/contrib
29
     - make -C src/contrib

Loading…
Откажи
Сачувај