Browse Source

Update drone.yml

tags/v0.0.5
Peter Vivell 6 years ago
parent
commit
5ca5f9178c
1 changed files with 5 additions and 12 deletions
  1. 5
    12
      drone.yml

+ 5
- 12
drone.yml View File

@@ -5,10 +5,6 @@ platform:
5 5
   os: linux
6 6
   arch: amd64
7 7
 
8
-cache:
9
-  mount:
10
-    - /drone/cache
11
-
12 8
 steps:
13 9
 - name: build
14 10
   image: debian:stable-slim
@@ -17,15 +13,12 @@ steps:
17 13
     BUILDDEPS: build-essential libc6-dev libhidapi-dev libssl-dev   
18 14
     MAKEFLAGS: -j 4
19 15
   commands:
20
-    - mkdir -p /drone/cache /var/cache/apt/archives
21
-    - cp -rp /drone/cache/ /var/cache/apt/archives/
22
-    - ls -l /var/cache/apt/archives
23
-    - echo 'Acquire::http { Proxy "http://172.17.0.1:3142"; }' | tee -a /etc/apt/apt.conf.d/proxy
24
-    - apt-get update
25
-    - apt-get --yes upgrade
16
+    - cat >> /etc/apt/apt.conf.d/01-proxy <<-EOF
17
+        Acquire::http  { Proxy "http://172.17.0.1:3142"; }
18
+        Acquire::https { Proxy "https://"; };
19
+      EOF
20
+    - apt-get update && apt-get --yes upgrade
26 21
     - apt-get --yes install $BUILDDEPS
27
-    - cp -rp /var/cache/apt/archives /drone/cache/
28
-    - ls -l /drone/cache
29 22
     - export MAKEFLAGS
30 23
     - make -C src
31 24
     - make -C src/contrib

Loading…
Cancel
Save