-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (62 loc) · 1.85 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
52
53
54
55
56
57
58
59
60
61
62
63
sudo: required
dist: trusty
group: deprecated-2017Q4
language: bash
before_script:
- sudo apt-get update -qq
- sudo apt-get install aria2 zip unzip check -qq
script:
- source ./env.sh
- "${DLR} ${ROOTFS_URL} -o ${ROOTFS_FN}"
- "${DLR} ${FRTCP_URL} -o ${FRTCP_FN}"
-
- sudo tar -zxpf ${ROOTFS_FN}
- cd root.x86_64
- sudo cp -f ../profile ./etc/profile
- sudo cp -bf ../mirrorlist ./etc/pacman.d/mirrorlist
- sudo cp -bf ../pacman.conf.nosig ./etc/pacman.conf
- sudo sed -i -e "s/#en_US.UTF-8/en_US.UTF-8/" ./etc/locale.gen
- echo "LANG=en_US.UTF-8" | sudo tee ./etc/locale.conf
- sudo cp -f ../${FRTCP_FN} ./root/
- sudo cp -f /etc/resolv.conf ./etc/resolv.conf
- sudo mv -f ./etc/mtab ./etc/mtab.bak
- echo "rootfs / rootfs rw 0 0" | sudo tee ./etc/mtab
-
- sudo mount -t proc proc proc/
- sudo mount --bind /sys sys
-
- sudo chroot . /usr/bin/pacman -Syu --noconfirm ${PAC_PKGS}
- sudo chmod u+s ./usr/bin/ping
- sudo rm -rf ./etc/mtab
- echo "rootfs / rootfs rw 0 0" | sudo tee ./etc/mtab
- sudo chroot . /usr/bin/locale-gen
- yes | sudo chroot . /usr/bin/pacman -U /root/${FRTCP_FN}
- yes | sudo chroot . /usr/bin/pacman -Scc
-
- sudo cp -f ../sudoers ./etc/sudoers
-
- sudo umount ./{sys,proc}
- sudo mv -f ./etc/mtab.bak ./etc/mtab
- sudo cp -f ../pacman.conf ./etc/pacman.conf
- echo "# This file was automatically generated by WSL. To stop automatic generation
of this file, remove this line." | sudo tee ./etc/resolv.conf
-
- sudo rm -rf `sudo find ./root/ -type f`
- sudo rm -rf `sudo find ./var/cache/pacman/pkg/ -type f`
-
- sudo tar -zcpf ../rootfs.tar.gz *
- sudo chown `id -un` ../rootfs.tar.gz
- cd ..
- mkdir out
- mv -f rootfs.tar.gz ./out/install.tar.gz
notifications:
email: false
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: out/install.tar.gz
skip_cleanup: true
on:
repo: bilguun0203/ArchLinuxFS
tags: true
all_branches: true