瀏覽代碼

travis-ci: Adding spwaspace to trusty env

Jan Wagner 10 年之前
父節點
當前提交
1e2226c372
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .travis.yml

+ 2 - 0
.travis.yml

@@ -10,6 +10,8 @@ before_install:
   - sudo [ $(ip addr show | grep "inet6 ::1" | wc -l) -lt "1" ] && sudo sed -i '/^::1/d' /etc/hosts
   - sudo [ $(ip addr show | grep "inet6 ::1" | wc -l) -lt "1" ] && sudo sed -i '/^::1/d' /etc/hosts
   # Trusty has running ntpd on localhost, but we don't like that for our tests
   # Trusty has running ntpd on localhost, but we don't like that for our tests
   - sudo killall -9 ntpd
   - sudo killall -9 ntpd
+  # Trusty has no swap, lets create some
+  - sudo fallocate -l 20M /swapfile; sudo chmod 600 /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile
   - sudo add-apt-repository -y ppa:waja/trusty-backports
   - sudo add-apt-repository -y ppa:waja/trusty-backports
   - sudo apt-get update -qq
   - sudo apt-get update -qq
   - sudo apt-get purge -qq gawk
   - sudo apt-get purge -qq gawk