Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Update travis (#4054)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Sep 17, 2017
1 parent 38f54d9 commit 02c7abe
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 58 deletions.
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
language: python
node_js: "8.4.0"
node_js: "8"

cache:
directories:
- node_modules
- pip
- yarn

env:
- DISPLAY=':99.0'
global:
- DISPLAY=':99.0'
- YARN_VERSION='0.24.5'
- MC_COMMIT='abd295766dfe'

addons:
apt:
Expand All @@ -18,13 +21,17 @@ addons:
install:
- pip install --upgrade pip
- pip install -U mercurial
- . $HOME/.nvm/nvm.sh; nvm install stable; nvm use stable
- ./bin/ci/install-yarn
- ./bin/ci/clone-gecko.sh
- npm install
- du -sh firefox
- yarn

before_script:
- ./bin/ci/build-firefox.sh
- sh -e /etc/init.d/xvfb start

script:
- echo $TRAVIS_COMMIT_RANGE
- node --version
- du -sh firefox
- ./bin/ci/run-tests.sh $TRAVIS_COMMIT_RANGE
2 changes: 1 addition & 1 deletion bin/ci/build-firefox.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

cd gecko
cd firefox
# We have to set that env variable otherwise
# ./mach build is going to be interactive and expect <ENTER>
# to be pressed to continue. Here travis would just be stuck...
Expand Down
15 changes: 6 additions & 9 deletions bin/ci/clone-gecko.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/bin/bash

hg --version
if [ ! -d "gecko/.hg" ]; then
rm -rf gecko/
hg clone https://hg.mozilla.org/mozilla-unified/ gecko
else
cd gecko
hg strip --no-backup 'roots(outgoing())'
hg pull -u
cd ..
fi
rm -rf firefox/
hg clone https://hg.mozilla.org/mozilla-unified/ firefox

cd firefox
hg co $MC_COMMIT
cd ..
File renamed without changes.
10 changes: 3 additions & 7 deletions bin/ci/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash

node ./bin/copy-assets.js --mc gecko

cd gecko

./mach mochitest devtools/client/debugger/new

cd ..
node ./bin/copy-assets.js --mc firefox
node bin/mochi.js
exit $?
6 changes: 0 additions & 6 deletions bin/install-chrome

This file was deleted.

8 changes: 0 additions & 8 deletions bin/install-firefox

This file was deleted.

17 changes: 0 additions & 17 deletions bin/update-docker

This file was deleted.

5 changes: 1 addition & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,21 @@ test:
- yarn lint-js
- yarn lint-md
- yarn flow
- ./bin/run-mochitests-docker
post:
- yarn flow-coverage -- -t json -o $CIRCLE_TEST_REPORTS/flow-coverage
- yarn check --integrity
- bash <(curl -s https://codecov.io/bash) -f $CIRCLE_TEST_REPORTS/jest-coverage/coverage-final.json

dependencies:
pre:
- ./bin/install-yarn
- ./bin/ci/install-yarn
- yarn global add greenkeeper-lockfile@1
cache_directories:
- ~/downloads
- ~/.cache/yarn
- ~/.yarn
override:
- yarn install
- yarn global add flow-coverage-report
- ./bin/update-docker

general:
artifacts:
Expand Down

0 comments on commit 02c7abe

Please sign in to comment.