Skip to content

Commit 123c748

Browse files
committed
shell scripts for travis
1 parent 9b7f687 commit 123c748

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ install:
1010
- pip install -U -r requirements.txt
1111
- if [[ $DO_COVERAGE ]]; then pip install coveralls; fi
1212
before_script:
13-
- wget https://github.com/acmeism/RosettaCodeData/archive/bba7b.tar.gz
14-
- mkdir fortran_tests/before/RosettaCodeData && tar -xf bba7b.tar.gz -C fortran_tests/before/RosettaCodeData --strip-components=1
15-
- if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then wget https://github.com/cp2k/cp2k/archive/ca7e2c.tar.gz; fi
16-
- if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then tar -xf ca7e2c.tar.gz -C fortran_tests/before --strip-components=1 cp2k-ca7e2c09634e2a1b7a8b7357cb15a856726483a4/cp2k/src; fi
13+
- .travis/prep_rosetta.sh
14+
- if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then .travis/prep_cp2k.sh; fi
1715
script:
1816
- if ! [[ $DO_COVERAGE ]]; then python setup.py test; fi
1917
- if [[ $DO_COVERAGE ]]; then coverage run --source=fprettify setup.py test; fi

.travis/prep_cp2k.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
wget https://github.com/cp2k/cp2k/archive/ca7e2c.tar.gz
3+
tar -xf ca7e2c.tar.gz -C fortran_tests/before --strip-components=1 cp2k-ca7e2c09634e2a1b7a8b7357cb15a856726483a4/cp2k/src

.travis/prep_rosetta.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
wget https://github.com/acmeism/RosettaCodeData/archive/bba7b.tar.gz
3+
mkdir fortran_tests/before/RosettaCodeData && tar -xf bba7b.tar.gz -C fortran_tests/before/RosettaCodeData --strip-components=1

0 commit comments

Comments
 (0)