Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
* Output config.log when ./configure is failed.
  See https://travis-ci.org/trinityrnaseq/trinityrnaseq/jobs/467718668
* Move "make" and "make install" tasks to before_script.
  each command in script section runs in parallel.
  script:
    - command 1
    - command 2

  But each command innn before_script section runs sequentially.
  before_script:
    - command 1
    - command 2
  That's to find each command's error easily from Travis log page.
  • Loading branch information
Jun Aruga committed Dec 13, 2018
1 parent e8fed8c commit acd79ab
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,17 @@ install:
- sudo pip install numpy

- popd
script:
before_script:
- |
export TRINITY_HOME=`pwd` && \
make && \
make plugins && \
sudo make install > /dev/null && \
make test -C sample_data/test_Trinity_Assembly
function show_log {
for file in $(find . -name config.log); do
echo "config.log File: ${file}"
cat "${file}"
done
}
- export TRINITY_HOME=`pwd`
- make || (show_log; false)
- make plugins || (show_log; false)
- sudo make install > /dev/null
script:
- make test -C sample_data/test_Trinity_Assembly

0 comments on commit acd79ab

Please sign in to comment.