Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add mach bootstrap test #631

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

debug: only run mach bootstrap on travis

  • Loading branch information
aneeshusa committed May 6, 2017
commit fc0591fb0f94d04f634423303073ffd25983d3d7
@@ -6,77 +6,77 @@ language: cpp
# sudo: required and dist: trusty enable usage of Trusty
matrix:
include:
# Salt from scratch
- env:
- SALT_NODE_ID=servo-linux-cross1
- SALT_FROM_SCRATCH=true
os: linux
sudo: required
dist: trusty
- env:
- SALT_NODE_ID=servo-mac1
- SALT_FROM_SCRATCH=true
os: osx
osx_image: xcode7.3
- env:
- SALT_NODE_ID=servo-linux1
- SALT_FROM_SCRATCH=true
os: linux
sudo: required
dist: trusty
- env:
- SALT_NODE_ID=servo-master1
- SALT_FROM_SCRATCH=true
os: linux
sudo: required
dist: trusty
# Salt from previous configuration
- env:
- SALT_NODE_ID=servo-linux-cross1
- SALT_FROM_SCRATCH=false
os: linux
sudo: required
dist: trusty
- env:
- SALT_NODE_ID=servo-mac1
- SALT_FROM_SCRATCH=false
os: osx
osx_image: xcode7.3
- env:
- SALT_NODE_ID=servo-linux1
- SALT_FROM_SCRATCH=false
os: linux
sudo: required
dist: trusty
- env:
- SALT_NODE_ID=servo-master1
- SALT_FROM_SCRATCH=false
os: linux
sudo: required
dist: trusty
# Salt inside Docker
- env:
- SALT_NODE_ID=servo-linux1
- SALT_FROM_SCRATCH=true
# ubuntu/14.04
- SALT_DOCKER_IMAGE=ubuntu@sha256:edf05697d8ea17028a69726b4b450ad48da8b29884cd640fec950c904bfb50ce
os: linux
sudo: required
dist: trusty
- env:
- SALT_NODE_ID=servo-linux1
- SALT_FROM_SCRATCH=true
# ubuntu/16.04
- SALT_DOCKER_IMAGE=ubuntu@sha256:f3a61450ae43896c4332bda5e78b453f4a93179045f20c8181043b26b5e79028
os: linux
sudo: required
dist: trusty
# Not a Salt node, runs test suite instead
- env:
- SALT_NODE_ID=test
os: linux
sudo: required
dist: trusty
# # Salt from scratch
# - env:
# - SALT_NODE_ID=servo-linux-cross1
# - SALT_FROM_SCRATCH=true
# os: linux
# sudo: required
# dist: trusty
# - env:
# - SALT_NODE_ID=servo-mac1
# - SALT_FROM_SCRATCH=true
# os: osx
# osx_image: xcode7.3
# - env:
# - SALT_NODE_ID=servo-linux1
# - SALT_FROM_SCRATCH=true
# os: linux
# sudo: required
# dist: trusty
# - env:
# - SALT_NODE_ID=servo-master1
# - SALT_FROM_SCRATCH=true
# os: linux
# sudo: required
# dist: trusty
# # Salt from previous configuration
# - env:
# - SALT_NODE_ID=servo-linux-cross1
# - SALT_FROM_SCRATCH=false
# os: linux
# sudo: required
# dist: trusty
# - env:
# - SALT_NODE_ID=servo-mac1
# - SALT_FROM_SCRATCH=false
# os: osx
# osx_image: xcode7.3
# - env:
# - SALT_NODE_ID=servo-linux1
# - SALT_FROM_SCRATCH=false
# os: linux
# sudo: required
# dist: trusty
# - env:
# - SALT_NODE_ID=servo-master1
# - SALT_FROM_SCRATCH=false
# os: linux
# sudo: required
# dist: trusty
# # Salt inside Docker
# - env:
# - SALT_NODE_ID=servo-linux1
# - SALT_FROM_SCRATCH=true
# # ubuntu/14.04
# - SALT_DOCKER_IMAGE=ubuntu@sha256:edf05697d8ea17028a69726b4b450ad48da8b29884cd640fec950c904bfb50ce
# os: linux
# sudo: required
# dist: trusty
# - env:
# - SALT_NODE_ID=servo-linux1
# - SALT_FROM_SCRATCH=true
# # ubuntu/16.04
# - SALT_DOCKER_IMAGE=ubuntu@sha256:f3a61450ae43896c4332bda5e78b453f4a93179045f20c8181043b26b5e79028
# os: linux
# sudo: required
# dist: trusty
# # Not a Salt node, runs test suite instead
# - env:
# - SALT_NODE_ID=test
# os: linux
# sudo: required
# dist: trusty
# Check that mach bootstrap works
- env:
- SALT_NODE_ID=mach-bootstrap
@@ -45,7 +45,7 @@ run_inside_docker() {
# Reexec this script inside docker
# (without exporting the `SALT_DOCKER_IMAGE` environment variable
# to prevent recursion)
local -r DOCKER_SALT_ROOT="/tmp/salt"
local -r DOCKER_SALT_ROOT="/tmp/saltfs"

# Use an env file for variables which may or may not be present
local -r DOCKER_ENV_FILE="/tmp/docker-env-file"
@@ -100,9 +100,9 @@ elif [[ "${SALT_NODE_ID}" == "mach-bootstrap" ]]; then
# so that `python-apt` is available
export PATH="/usr/bin:${PATH}"

# Install git (not present by default in Docker)
sudo apt-get update
sudo apt-get -y install git
# Install basic deps (not present by default in Docker)
${SUDO} apt-get update
${SUDO} apt-get -y install git python-apt python-dev python-pip python-virtualenv

# Run mach bootstrap test separately from `test` because it installs things
git clone --depth 1 https://github.com/servo/servo.git ../servo
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.