Edgewall Software
Modify

Opened 4 years ago

Closed 4 years ago

#13274 closed task (fixed)

Enable Travis CI build config validation

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.20
Component: general Version:
Severity: normal Keywords: travis-ci
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Enabled Travis CI build config validation. Refactored phases so that before_script and script are skipped for the deploy job.

Description

Attachments (0)

Change History (3)

comment:1 by Ryan J Ollos, 4 years ago

  • .travis.yml

    diff --git a/.travis.yml b/.travis.yml
    index b530bc5b9..773b1ca73 100644
    a b  
     1version: ~> 1.0
    12language: python
    23python: 2.7
    34addons:
    before_install:  
    9192- pip list
    9293install:
    9394- |
    94   if [ "$TRAVIS_OS_NAME" = linux -a "$TRAVIS_BUILD_STAGE_NAME" = Test -a \
     95  if [ "$TRAVIS_OS_NAME" = linux -a "$TRAVIS_BUILD_STAGE_NAME" = test -a \
    9596       "$(/usr/bin/python -c "$print_version")" = "$(python -c "$print_version")" ]
    9697  then
    9798    print_sitelib='from distutils.sysconfig import get_python_lib; print(get_python_lib())'
    install:  
    122123  echo ".uri = $tracdb_uri" >Makefile.cfg
    123124script:
    124125- if [ -n "$tracdb_version" ]; then echo "$tracdb_version"; fi
    125 - if [ "$TRAVIS_BUILD_STAGE_NAME" = Test ];
     126- if [ "$TRAVIS_BUILD_STAGE_NAME" = test ];
    126127  then
    127128    make Trac.egg-info compile unit-test functional-test;
    128129  fi

comment:2 by Ryan J Ollos, 4 years ago

I did a series of changes:

The motivation for the latter two changes was the Testtest Travis CI change (bug?) that led to unit tests not being executed but no build failure.

comment:3 by Ryan J Ollos, 4 years ago

Internal Changes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to 1.0-stable in r17281, merged to 1.2-stable in r17282, merged to 1.4-stable in r17283, merged to trunk in r17284.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
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.