Edgewall Software
Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#12200 closed enhancement (fixed)

Travis CI: Migrate to container-based infrastructure

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 0.12.8
Component: general Version:
Severity: normal Keywords: travis-ci
Cc:
Release Notes:

Moved to Travis CI's new contained-based infrastructure.

API Changes:

Description

Travis CI recommends migrating to the new container-based infrastructure. It looks like only minor changes would be needed to travis.yml.

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by Ryan J Ollos

Owner: set to Ryan J Ollos
Status: newassigned

Proposed change:

  • .travis.yml

    diff --git a/.travis.yml b/.travis.yml
    index 985b2d8..b97d9b9 100644
    a b  
    11language: python
     2sudo: false
    23python:
    34  - "2.6"
    45  - "2.7_with_system_site_packages"
    env:  
    89  - "TRAC_TEST_DB_URI=postgres://tracuser:password@localhost/trac?schema=tracte
    910  - "TRAC_TEST_DB_URI=mysql://tracuser:password@localhost/trac"
    1011before_install:
    11   - sudo apt-get update -qq
    12   - sudo apt-get install -qq python-subversion
    1312  - psql -U postgres -c "CREATE USER tracuser NOSUPERUSER NOCREATEDB CREATEROLE
    1413  - psql -U postgres -c "CREATE DATABASE trac OWNER tracuser;"
    1514  - mysql -u root -e "CREATE DATABASE trac DEFAULT CHARACTER SET utf8mb4 COLLAT
    before_install:  
    1817install:
    1918  - pip install -q Genshi==0.7 Babel Pygments docutils lxml pytz twill==0.9.1 p
    2019  - echo ".uri = $TRAC_TEST_DB_URI" >Makefile.cfg
     20addons:
     21  apt:
     22    packages:
     23      - python-subversion
    2124script:
    2225  - make Trac.egg-info compile unit-test functional-test
    2326notifications:

I've tested this on my GitHub branch. Initial results show a speedup in build execution time; 1 hr 9 min vs 1 hr 44 min for prior changeset.

comment:2 Changed 3 years ago by Jun Omae

Looks good to me. Should we apply that changes to 0.12-stable as well?

comment:3 Changed 3 years ago by Ryan J Ollos

Milestone: 1.0.90.12.8
Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Thanks for the review, committed to 0.12-stable in [14309], merged to 1.0-stable in [14310], merged to trunk in [14311].

comment:4 Changed 3 years ago by Ryan J Ollos

Keywords: travis-ci added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.