-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (35 loc) · 2.27 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
sudo: required
language: minimal
before_install:
- cd
- wget http://chymera.eu/gebuilder/gebuilder.tar.xz
- mkdir -p gentoo
- tar -xf gebuilder.tar.xz --exclude='dev/*' -C gentoo &> gentoo_extraction.log
- mv build/IBT-FMI/gebuilder gentoo/gebuilder
- cp -L /etc/resolv.conf gentoo/etc/
- sudo mount --bind /dev gentoo/dev
- sudo mount --bind /sys gentoo/sys
- sudo mount --bind /proc gentoo/proc
- sudo env -i PATH="$PATH" chroot gentoo/ /bin/bash -c "echo python3.7 > /etc/python-exec/python-exec.conf"
- sudo chroot gentoo/ /bin/bash -c "emerge --quiet --sync"
- sudo chroot gentoo/ /bin/bash -c "echo \"C.UTF-8 UTF-8\" >> /etc/locale.gen && locale-gen && echo \"export LANG='C.utf8'\" >> /etc/profile.env && env-update"
- sudo env -i PATH="$PATH" chroot gentoo/ /bin/bash -c "emerge -1q portage"
install:
- sudo env -i PATH="$PATH" chroot gentoo/ /bin/bash -c "/gebuilder/.gentoo/install.sh --autounmask-continue=y --autounmask=y --quiet"
script:
- sudo chroot gentoo/ /bin/bash -c "eselect python list"
- sudo env -i PATH="$PATH" chroot gentoo/ /bin/bash -c "FEATURES=\"test -sandbox -network-sandbox -mount-sandbox -pid-sandbox -usersandbox -ipc-sandbox\" /gebuilder/.gentoo/install.sh --autounmask-continue=y --autounmask=y"
#language: python
#before_install:
# - docker pull gebuilder/gebuilder_environment
# - docker create --name "gebuilder_environment" --rm -ti -v "${PWD}":/home/gebuilder_environment gebuilder/gebuilder_environment
# - docker start gebuilder_environment
# # Re-emerging dependencies in not needed if the environment image is regenerated frequently (e.g. weekly)
# #- docker exec gebuilder_environment emaint sync -a
# #- docker exec gebuilder sh -c '/home/gebuilder/.gentoo/install.sh -o --autounmask-continue'
#install:
# # Re/Install the package without tests, this is not separately needed as it is included in the script below:
# #- docker exec gebilder_environment sh -c 'FEATURES="-test" /home/gebuilder_environment/.gentoo/install.sh --autounmask-continue'
#script:
# # Install and run tests (this is performed separately from dependency installation so as to not propagate the test FEATURE to the entire graph):
# - docker exec gebuilder_environment sh -c 'FEATURES="test" /home/gebuilder_environment/.gentoo/install.sh --autounmask-continue'